[maemo-users] Ping as user: error

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

 



Laurent MARTIN wrote:

> Hi!
> I've installed the IPutils package on my N770 and I've noticed that 
> I'm not able to ping as "normal" user (aka "user"):
> "ping: icmp open socket: Operation not permitted"
> Things work well if I use ping as "root" user (sudo gainroot). Is this 
> a normal behaviour?

on *nix, you have to be root to open a 'raw' socket, which is what ping 
uses (a raw socket of type ICMP).

if you write a little 'c', you'll find you have to be root (or the 
program must be suid root) in order to do this:

socket(AF_INET, SOCK_RAW, 1);





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux