Sending ECHO_REQUEST (pinging) with python

Nick Craig-Wood nick at
Mon Mar 26 13:30:04 CEST 2007

Michael Bentley <michael at> wrote:
>  On Mar 26, 2007, at 1:30 AM, Thomas Dybdahl Ahle wrote:
> > It seems however that I have to be root to send those imcp
> > packages, but I guess there must be a workaround since I can
> > easily use the "ping" command as ordinary user.
>  The workaround your ping command is using btw, is probably running  
>  suid root.

Under linux the only priviledge you need is CAP_NET_RAW.  It is
possible to give this to a process - a bit of searching with google
will show you how!

Nick Craig-Wood <nick at> --

More information about the Python-list mailing list