ping: icmp open socket: Operation not permitted

Check to ensure that the ping binary is setuid root:

ls -l `which ping`

It should come back:

-rwsr-xr-x 1 root root 34752 2014-11-08 /bin/ping

If that’s not an s, you can fix it with:

sudo chmod u+s `which ping`

Then you will be allowed to ping as anyone.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s