How to fix – ping: socket: Operation not permitted

Error when trying to ping

ping: socket: Operation not permitted

Looks like it is a permissions issue. To resolve it, find where your ping binary is and change the permissions on it

sudo chmod 4711 /usr/bin/ping

Example:

$ which ping
/usr/bin/ping
$ sudo chmod 4711 /usr/bin/ping
$ ping incredigeek.com

One thought on “How to fix – ping: socket: Operation not permitted

Leave a Reply

Your email address will not be published. Required fields are marked *