简介:
ping: icmp open socket: Operation not permitted 的解决办法
PING www.a.shifen.com (220.181.111.83) 56(84) bytes of data.
64 bytes from 220.181.111.83: icmp_req=1 ttl=54 time=31.2 ms
64 bytes from 220.181.111.83: icmp_req=2 ttl=54 time=31.8 ms
64 bytes from 220.181.111.83: icmp_req=3 ttl=54 time=30.2
ping: icmp open socket: Operation not permitted 的解决办法
1.sudo route
ping www.baidu.com
2. ls -l /bin/ping
sudo chmod u+s /bin/ping
espy@espy:/var/www/e/htromwe/includes$ ls -l /bin/ping
3.
espy@espy:/var/www/e/htromwe/includes$ ping www.baidu.comPING www.a.shifen.com (220.181.111.83) 56(84) bytes of data.
64 bytes from 220.181.111.83: icmp_req=1 ttl=54 time=31.2 ms
64 bytes from 220.181.111.83: icmp_req=2 ttl=54 time=31.8 ms
64 bytes from 220.181.111.83: icmp_req=3 ttl=54 time=30.2
本文介绍了解决在Linux系统中遇到的ICMP Ping操作不被允许的问题的方法。通过使用sudo进行路由设置,并修改ping命令的执行权限,使得普通用户也能顺利执行Ping命令。
280

被折叠的 条评论
为什么被折叠?



