ping: icmp open socket: Operation not permitted 的解决办法
2016-06-08 11:02
931 查看
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
然后就能正常执行了。
报错时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
然后就能正常执行了。
相关文章推荐
- ssh scp ssh-copy-id 非22端口的操作方法
- dubbo的架构
- 分布式监控工具Ganglia 介绍 与 集群部署.
- Linux下解压缩命令
- Centos 6.5安装bugzilla 5.0.2
- 绝对详细!Nginx基本配置、性能优化指南
- 为什么Nginx的性能要比Apache高很多?
- SSH Permissions xxxx for 'xxxx' are too open.
- Linux学习——文件共享
- ViewConfiguration.getScaledTouchSlop () 用法
- linux 设置默认网关与网卡ip不同网段
- Linux中zip压缩和unzip解压缩命令详解
- opencv环境变量配置
- <property name="hbm2ddl.auto">create</property>
- 坑系列 — 重构过程中的过度设计
- Linux0.11源代码阅读part0
- SQL to mongo Shell to C++
- Powershell日常AD管理-1
- Linux信号列表详解
- centos6 安装 php7