[maemo-users] [maemo-users] Ping as user: error

From: Armin M. Warda Armin.Warda at Web.De
Date: Wed Feb 8 14:44:16 EET 2006
On Wednesday 08 February 2006 13:19, Laurent MARTIN wrote:
> > on *nix, you have to be root to open a 'raw' socket, which is
> > what ping uses (a raw socket of type ICMP).
> Really? I'd never noticed this before: at the office, I'm able to
> ping any machine I want from my normal user account.

I can explain this.

The ping executable on my SuSE 9.3 has the SUID-bit set:

armin at fifi:~> ls -la /bin/ping
-rwsr-xr-x  1 root root 31404 2005-03-19 20:09 /bin/ping

If I remove it with "chmod u-s" (as root), then as non-root 
user I will get this:

armin at fifi:~> ping localhost
ping: icmp open socket: Operation not permitted

Thus, if you want to be able to ping as user on your N770, 
root would have to do a "chmod u+s" on the ping-executable.

> I'm going to 
> ask our IT chief for more details on how our accounts are
> configured for this.
> Thank you very much for your explanation!

   --- May the Source be with you! Linux. ---
   --- http://www.arminwarda.mynetcologne.de/
   --- secure eMail: http://www.gnupg.de/ ---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-users/attachments/20060208/3340186b/attachment.pgp 
More information about the maemo-users mailing list