Re: 1.0-1 ping problem

2005-03-10 Thread Corinna Vinschen
On Mar  7 15:13, Paul G Cantalupo wrote:
> Hello,
> 
> When I run ping as the administrator on my Win2K box, it works fine but as
> a regular user, I get the following.
> 
> ping: socket: operation not permitted

I just had a look into the sources.  Cygwin's ping is using raw sockets.
This only works for admin accounts, according to MSDN:

  Note  Raw socket support requires administrative privileges. Users running
  Winsock applications that make use of raw sockets must have administrative
  privileges on the computer, otherwise raw socket calls will fail with an
  error code of WSAEACCES.

Use Windows' native ping instead.

> I added the u+s permission to the ping executable and now I get (from a
> regular user account):

The s-bits are just faked.  Cygwin doesn't support switching to another
user context by setting them.  I'm planning to implement that for years
but time goes by...


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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/



Re: 1.0-1 ping problem

2005-03-09 Thread Nine9
I have this same problem.  Did i miss a solution 
posting?  (I don't remember, but i thought this used
to 
work fine)
-- bye

From: Paul G Cantalupo 
Date: Mon, 07 Mar 2005 15:13:02 -0500 (EST)
>When I run ping as the administrator on my Win2K box,
it works fine but as
>a regular user, I get the following.
>
>ping: socket: operation not permitted
>
>I added the u+s permission to the ping executable and
now I get (from a
>regular user account):
>
>PING supernova (127.0.0.1): 56 data bytes
>sendto: Operation not permitted
>ping: wrote supernova 64 chars, ret=-1
>ping: recvfrom: Invalid argument
>ping: recvfrom: Invalid argument
>... (ad infinitum)

---  ---  ---




__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

--
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/



1.0-1 ping problem (nt, 2000, xp and server 2003

2005-02-15 Thread Jason FU
Hi there,

I'm noticing this summer, that whenever I try to ping cygwin, 

$ ping www^M
PING www.hgcbroadband.com (210.0.255.160): 56 data bytes^M
sendto: Operation not permitted^M
ping: wrote www.hgcbroadband.com 64 chars, ret=-1^M
ping: recvfrom: Invalid argument^M
ping: recvfrom: Invalid argument^M
ping: recvfrom: Invalid argument^M
ping: recvfrom: Invalid argument^M
ping: recvfrom: Invalid argument^M
ping: recvfrom: Invalid argument^M
ping: recvfrom: Invalid argument^M
ping: recvfrom: Invalid argument^M
ping: recvfrom: Invalid argument^M
ping: recvfrom: Invalid argument^M
ping: recvfrom: Invalid argument^M
ping: recvfrom: Invalid argument^M
ping: recvfrom: Invalid argument^M


Could this be a problem with 1.0-1 ping utility?"


Regards,

Jason FU



--
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/



Re: 1.0-1: ping problem

2005-01-28 Thread Shankar Unni
Jason FU wrote:
$ ping www.cygwin.com
Do you have problems understanding a *SIMPLE* request?
Please provide the details as mentioned in the web page 
http://cygwin.com/problems.html.

In case that wasn't clear to you: Please provide the details as 
mentioned in the web page http://cygwin.com/problems.html.

And once again: Please provide the details as mentioned in the web page 
http://cygwin.com/problems.html.

Oh, and finally, please *read the page carefully*, and follow the 
instructions exactly. Don't interpret them or do "equivalent steps".

Thanks

--
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/


Re: 1.0-1: ping problem

2005-01-28 Thread Christopher Faylor
On Fri, Jan 28, 2005 at 01:29:52PM -, Lino Miguel Martins Tinoco wrote:
>Jason FU wrote:
>
>> $ ping www.cygwin.com
>> PING www.cygwin.com (12.107.209.250): 56 data bytes
>> sendto: Operation not permitted
>> ping: wrote www.cygwin.com 64 chars, ret=-1
>> ping: recvfrom: Invalid argument
>> ping: recvfrom: Invalid argument
>> ...
>
>It seems the packet is assembled but it cannot be sent. Have you any
>firewall installed? If so, shut down the firewall and test again.

Again, I ask for the details mentioned in http://cygwin.com/problems.html .

--
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/



Re: 1.0-1: ping problem

2005-01-28 Thread Jason FU
Lino Miguel Martins Tinoco  telecom.pt> writes:

> 
> Jason FU wrote:
> 
> > $ ping www.cygwin.com
> > PING www.cygwin.com (12.107.209.250): 56 data bytes
> > sendto: Operation not permitted
> > ping: wrote www.cygwin.com 64 chars, ret=-1
> > ping: recvfrom: Invalid argument
> > ping: recvfrom: Invalid argument
> > ...
> 
> It seems the packet is assembled but it cannot be sent. Have you any
> firewall installed? If so, shut down the firewall and test again.
> 
> --Lino Tinoco
> 
> 


[EMAIL PROTECTED] ~
$ /c/WINDOWS/system32/ping.exe www.cygwin.com

Pinging www.cygwin.com [12.107.209.250] with 32 bytes of data:

Reply from 12.107.209.250: bytes=32 time=231ms TTL=55
Reply from 12.107.209.250: bytes=32 time=230ms TTL=55
Reply from 12.107.209.250: bytes=32 time=238ms TTL=55


[EMAIL PROTECTED] ~
$ /usr/bin/ping.exe www.cygwin.com
PING www.cygwin.com (12.107.209.250): 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
ping: recvfrom: Invalid argument


That's the same machine (Server 2003) for me to ping with Windows ping an \d
cygwin ping shown above.


Jason FU



--
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/



RE: 1.0-1: ping problem

2005-01-28 Thread Lino Miguel Martins Tinoco
Jason FU wrote:

> $ ping www.cygwin.com
> PING www.cygwin.com (12.107.209.250): 56 data bytes
> sendto: Operation not permitted
> ping: wrote www.cygwin.com 64 chars, ret=-1
> ping: recvfrom: Invalid argument
> ping: recvfrom: Invalid argument
> ...

It seems the packet is assembled but it cannot be sent. Have you any
firewall installed? If so, shut down the firewall and test again.

--Lino Tinoco

--
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/



1.0-1: ping problem

2005-01-27 Thread Jason FU
$ ping www.cygwin.com
PING www.cygwin.com (12.107.209.250): 56 data bytes
sendto: Operation not permitted
ping: wrote www.cygwin.com 64 chars, ret=-1
ping: recvfrom: Invalid argument
ping: recvfrom: Invalid argument
...




--
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/