Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - permission denied: (3 Items)
   
permission denied  
Program like ping and rcp fail with a "can't create socket permission denied error", while other program like telnet 
work fine.

What configuration option can create such a problem.  I suspect some file got trashed or have their permission screw up 
but I can't figure out what it is.
Re: permission denied  
On Fri, Oct 24, 2008 at 08:56:48AM -0400, Mario Charest wrote:
> Program like ping and rcp fail with a "can't create socket permission denied error", while other program like telnet 
work fine.
> 
> What configuration option can create such a problem.  I suspect some file got trashed or have their permission screw 
up but I can't figure out what it is.

They should be setuid root.  You need root to open a raw socket.
In utils/p/ping/common.mk this is handled by the
'FILE_INFO = 0 0 4775' line.

# chown root:root ping
# chmod u+s ping

-seanb
Re: permission denied  
> On Fri, Oct 24, 2008 at 08:56:48AM -0400, Mario Charest wrote:
> > Program like ping and rcp fail with a "can't create socket permission denied
>  error", while other program like telnet work fine.
> > 
> > What configuration option can create such a problem.  I suspect some file 
> got trashed or have their permission screw up but I can't figure out what it 
> is.
> 
> They should be setuid root.  You need root to open a raw socket.
> In utils/p/ping/common.mk this is handled by the
> 'FILE_INFO = 0 0 4775' line.
> 
> # chown root:root ping
> # chmod u+s ping
> 
> -seanb

I though about that but looked on two machines we have and they both don't have +s flag, hence I though it was something
 else at first.  Looked on a third machine and on that one it's there, grrrr.