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

From: Jim Thompson jim at netgate.com
Date: Wed Feb 8 14:12:18 EET 2006
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);



More information about the maemo-users mailing list