public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Is ping only supposed to work for admin accounts?
       [not found] <56EF2369.1090206@yahoo.com>
@ 2016-03-20 22:34 ` Ray Satiro
  2016-03-21  0:52   ` Brian Mathis
  0 siblings, 1 reply; 2+ messages in thread
From: Ray Satiro @ 2016-03-20 22:34 UTC (permalink / raw)
  To: cygwin

I just used the cygwin installer to install ping-1.0.2-1.tar.xz but it
doesn't work for limited user accounts:

$ ping google.com
ping: socket: Operation not permitted

   149   29930 [main] ping 11668 dup_ent: duping protoent "icmp", 0xD56580
    46   29976 [main] ping 11668 dup_ent: protoent icmp 0x80039F64 0x1
    21   29997 [main] ping 11668 dup_ent: duped protoent "icmp", 0x80039F50
    21   30018 [main] ping 11668 cygwin_socket: socket (2, 3 (flags 0x0), 1)
--- Process 11668 loaded C:\Windows\SysWOW64\WSHTCPIP.DLL at 73BB0000
  1084   31102 [main] ping 11668 __set_errno: void
__set_winsock_errno(const char*, int):235 setting errno 1
    37   31139 [main] ping 11668 __set_winsock_errno: cygwin_socket:694
- winsock error 10013 -> errno 1
    57   31196 [main] ping 11668 cygwin_socket: -1 = socket(2, 3 (flags
0x0), 1), errno 1





--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Is ping only supposed to work for admin accounts?
  2016-03-20 22:34 ` Is ping only supposed to work for admin accounts? Ray Satiro
@ 2016-03-21  0:52   ` Brian Mathis
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Mathis @ 2016-03-21  0:52 UTC (permalink / raw)
  To: cygwin

Yes.  Ping needs admin rights in all operating systems, but they have
various ways to allow access, such as running suid in unix or using a
special API call on Windows.  If you need ping from cygwin, it's best
to rely on the Windows version without installing the cygwin one.

~ Brian

On Sun, Mar 20, 2016 at 5:34 PM, Ray Satiro <raysatiro@yahoo.com> wrote:
> I just used the cygwin installer to install ping-1.0.2-1.tar.xz but it
> doesn't work for limited user accounts:
>
> $ ping google.com
> ping: socket: Operation not permitted
>
>   149   29930 [main] ping 11668 dup_ent: duping protoent "icmp", 0xD56580
>    46   29976 [main] ping 11668 dup_ent: protoent icmp 0x80039F64 0x1
>    21   29997 [main] ping 11668 dup_ent: duped protoent "icmp", 0x80039F50
>    21   30018 [main] ping 11668 cygwin_socket: socket (2, 3 (flags 0x0), 1)
> --- Process 11668 loaded C:\Windows\SysWOW64\WSHTCPIP.DLL at 73BB0000
>  1084   31102 [main] ping 11668 __set_errno: void
> __set_winsock_errno(const char*, int):235 setting errno 1
>    37   31139 [main] ping 11668 __set_winsock_errno: cygwin_socket:694
> - winsock error 10013 -> errno 1
>    57   31196 [main] ping 11668 cygwin_socket: -1 = socket(2, 3 (flags
> 0x0), 1), errno 1
>
>
>
>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-21  0:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <56EF2369.1090206@yahoo.com>
2016-03-20 22:34 ` Is ping only supposed to work for admin accounts? Ray Satiro
2016-03-21  0:52   ` Brian Mathis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).