ping: icmp open socket: Operation not permitted 的解决办法

ping: icmp open socket: Operation not permitted 的解决办法:为ping加上suid即可。

报错时ping的属性:

[root@localhost ~]# ls -l /usr/bin/ping
-rwxr-xr-x 1 root root 44896 Mar 23 18:06 /usr/bin/ping

给ping加上suid:

[root@localhost ~]# chmod u+s /usr/bin/ping

[root@localhost ~]$ ls -l /usr/bin/ping
-rwsr-xr-x 1 root root 44896 Mar 23 18:06 /usr/bin/ping

然后就能正常执行了。

posted on 2016-06-08 11:02  生活费  阅读(10414)  评论(0编辑  收藏  举报

导航