[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can ping only with sudo



Hi David,

On Sat, Oct 06, 2007 at 05:46:58PM -0700, David Fox wrote:
> On 10/6/07, tom arnall <kloro2006@gmail.com> wrote:
> > lately i inadvertently did 'chmod 777 -R /dev' on my system (as root, of
> > course!). now i find that to ping anyone i have to do it as sudo, else i get:
> >
> >         ping: icmp open socket: Operation not permitted
> 
> Something is odd indeed.
> 
> I attempted to run an strace (sometimes those can be useful to see
> what devices and files it is trying to read - look at access() and
> open() functions in particular) but I get the same error as you if I
> try to do an strace on ping. Otherwise, ping runs normally.

I believe this is because it won't run setuid under strace.  As Tom
says in the other reply, the OP's problem is most likely that
/bin/ping has lost its setuid bit.

Cheers,
Andy

-- 
http://bitfolk.com/ -- No-nonsense VPS hosting
Encrypted mail welcome - keyid 0x604DE5DB

Attachment: signature.asc
Description: Digital signature


Reply to: