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

然后就能正常执行了。

相关文章:

  • 2022-12-23
  • 2022-01-14
  • 2021-05-22
  • 2021-09-28
  • 2022-12-23
  • 2021-11-29
  • 2021-08-12
  • 2022-12-23
猜你喜欢
  • 2021-09-25
  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
相关资源
相似解决方案