Enabling Normal Non-Root Users to Use Ping in Linux
- Sometimes you just want to ping a remote site or server to test something like your connection:
$ ping google.com
- but get this error:
ping: icmp open socket: Operation not permitted
- However ping works for the root user, just not non root users. To
enable ping for normal users, issue command below as root or use sudo:
# chmod u+s `which ping`
(Those are backticks not single quotes)
/or
# chmod u+s /bin/ping
- Now it should work.
0 comments:
Post a Comment