(usagi-users 03798) Re: ping doesn't work as normal user?

Mitsuru Chinen <[email protected]> Mon, 5 Feb 2007 09:44:09 +0900
Newsgroups gmane.linux.ipv6.usagi.users
Organization IBM Japan, Ltd.
Message-ID <[email protected]>
On Sun, 4 Feb 2007 06:55:26 +0200
Ismail Dönmez <[email protected]> wrote:

> On Sunday 04 February 2007 03:07:38 YOSHIFUJI Hideaki / 吉藤英明 wrote:
> > In article <[email protected]> (at Sat, 3 Feb 2007 
> 23:07:54 +0200), Ismail Dönmez <[email protected]> says:
> > > I git pulled iputils from USAGI git tree but ping doesn't seem to work as
> > > normal user :
> > >
> > > [~/GIT/USAGI/iputils]> ./ping www.google.com
> > > ping: icmp open socket: Operation not permitted
> >
> > It is very normal; each ping{,6} utility needs root privilege to open
> > raw socket.
> 
> But the normal ping program  works fine without root?

You might want to look at the SUID bit of the pre-installed ping
in your system.

  $ ls -l /bin/ping
  -rwsr-xr-x 1 root root 39496 2006-11-25 21:17 /bin/ping
     ^         ^^^^
As the SUID bit is set and the owner of ping is root, normal users
are able to execute the ping program with root privilege.

Best Regards,
----
Mitsuru Chinen <[email protected]>