Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <4342E07B.10400@ntlworld.com> Date: Tue, 04 Oct 2005 21:05:15 +0100 From: cy DOT 20 DOT superconductor AT xoxy DOT net User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: ping: recvfrom: Invalid argument Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spamgourmet: I've seen this problem mentioned before on this list, but I've just discovered something about it which I thought was worth mentioning (I don't know if this has been reported before). I'm on WinXP SP2 logged on as a non admin. Lets try to ping cygwin.com... PING www.cygwin.com (209.132.176.174): 56 data bytes sendto: Operation not permitted ping: wrote www.cygwin.com 64 chars, ret=-1 ping: recvfrom: Invalid argument ping: recvfrom: Invalid argument ping: recvfrom: Invalid argument strace shows the following: 43 61785 [main] ping 2436 cygwin_socket: socket (2, 3, 1) 6343 68128 [main] ping 2436 fdsock: reset socket inheritance since winsock2_active 1 245 68373 [main] ping 2436 build_fh_pc: fh 0x61155E30 69 68442 [main] ping 2436 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0 43 68485 [main] ping 2436 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000 39 68524 [main] ping 2436 fhandler_base::set_flags: filemode set to binary 39 68563 [main] ping 2436 fdsock: fd 3, name '', soc 0x6D0 39 68602 [main] ping 2436 cygwin_socket: 3 = socket (2, 3, 1) 964044 1032646 [main] ping 2436 fhandler_base::fstat: here 81 1032727 [main] ping 2436 fstat64: 0 = fstat (1, 0x22D190) 248 1032975 [main] ping 2436 fhandler_base::write: binary write PING www.cygwin.com (209.132.176.174): 56 data bytes 215 1033190 [main] ping 2436 void: 0x0 = signal (2, 0x401C00) 40 1033230 [main] ping 2436 void: 0x0 = signal (14, 0x4015D0) 7706 1040936 [main] ping 2436 open: open (/usr/share/zoneinfo/posixrules, 0x10000) (snipped stuff about the posixrules file here) 51 1200237 [main] ping 2052 cygwin_sendto: -1 = sendto (3, 0x405030, 64, 0, 0x407090, 16) 116 1200353 [main] ping 2052 fhandler_base::write: binary write sendto 171 1200524 [main] ping 2052 fhandler_base::write: binary write : 165 1200689 [main] ping 2052 fhandler_base::write: binary write Operation not permitted 242 1200931 [main] ping 2052 fhandler_base::write: binary write 271 1201202 [main] ping 2052 fhandler_base::write: binary write ping: wrote www.cygwin.com 64 chars, ret=-1 456 1201658 [main] ping 2052 alarm: 0 = alarm (1) 301 1201959 [main] ping 2052 __set_errno: void __set_winsock_errno(const char*, int):289 val 22 89 1202048 [main] ping 2052 __set_winsock_errno: recvfrom:1047 - winsock error 10022 -> errno 22 44 1202092 [main] ping 2052 cygwin_recvfrom: -1 = recvfrom (3, 0x406080, 4096, 0, 0x22EEC0, 0x22EEA8) 181 1202273 [main] ping 2052 fhandler_base::write: binary write ping: recvfrom 183 1202456 [main] ping 2052 fhandler_base::write: binary write : 169 1202625 [main] ping 2052 fhandler_base::write: binary write Invalid argument 235 1202860 [main] ping 2052 fhandler_base::write: binary write 260 1203120 [main] ping 2052 __set_errno: void __set_winsock_errno(const char*, int):289 val 22 59 1203179 [main] ping 2052 __set_winsock_errno: recvfrom:1047 - winsock error 10022 -> errno 22 etc. BUT if I am on an administrator account ... $ ping www.cywin.com PING www.cywin.com (209.99.112.67): 56 data bytes 36 bytes from 216.166.52.9: icmp_type=3 (Dest Unreachable) icmp_code=1 36 bytes from 216.166.52.9: icmp_type=3 (Dest Unreachable) icmp_code=1 So why are administrator priviledges needed to ping? Thanks in advance, Paul -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/