Closed GoogleCodeExporter closed 8 years ago
[deleted comment]
I also encountered this problem when using "ping", see it below:
wsh@wsh-win7 ~
$ which ping
/usr/bin/ping
wsh@wsh-win7 ~
$ ping www.google.com
ping: socket: Operation not permitted
wsh@wsh-win7 ~
$ /cygdrive/c/Windows/system32/ping.exe www.google.com
正在 Ping www-g-com-chn.l.google.com [66.249.89.104] 具有 32
字节的数据:
来自 66.249.89.104 的回复: 字节=32 时间=605ms TTL=51
来自 66.249.89.104 的回复: 字节=32 时间=464ms TTL=51
来自 66.249.89.104 的回复: 字节=32 时间=753ms TTL=51
来自 66.249.89.104 的回复: 字节=32 时间=486ms TTL=51
66.249.89.104 的 Ping 统计信息:
数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
最短 = 464ms,最长 = 753ms,平均 = 577ms
Original comment by sharkke.w@gmail.com
on 20 Jan 2011 at 7:48
Problem fixed. For some reason, the mintty.exe binary on my PC was configured
to always run as an administrator. I don't know how (or when) it happened, but
after clearing the checkbox (see attached), UAC is no longer triggered, and I
no longer have the problems I noted. Please accept my apologies for the wild
goose chase.
Regarding sharkke.w's comment about ping, I believe this is normal. The Cygwin
ping uses raw sockets, which require administrative privileges under Vista and
Windows 7. The Windows ping apparently uses a different mechanism, so it works
fine without admin privs. To use /usr/bin/ping inside Cygwin, you will need to
invoke mintty (or bash) as an administrator.
Original comment by jsnee...@gmail.com
on 20 Jan 2011 at 4:31
Attachments:
well, thanks for your reply, it's OK and after all it it not a big problem.
Original comment by sharkke.w@gmail.com
on 21 Jan 2011 at 2:39
@jsnee: Glad you got that sorted, because I have no idea what change could have
caused that.
@sharkke.w: Cygwin ping requiring administrator privileges is unfortunate, but
it's not a mintty issue. The Cygwin mailing list is the best place to ask about
that, but you might just get the same answer as jsnee's.
Original comment by andy.koppe
on 23 Jan 2011 at 7:33
@andy.koppe: I got it, thank you.
Original comment by sharkke.w@gmail.com
on 23 Jan 2011 at 11:36
Original issue reported on code.google.com by
jsnee...@gmail.com
on 17 Jan 2011 at 9:34