This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is ping only supposed to work for admin accounts?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]