7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ping: icmp open socket: 許可されていない操作です

Last updated at Posted at 2014-12-05
$ ping server01
ping: icmp open socket: 許可されていない操作です

英語だと
ping: icmp open socket: Operation not permitted

修正方法

centosの場合
ls -l /usr/bin/ping
chmod u+s /usr/bin/ping
ls -l /usr/bin/ping
proxmox4の場合
chmod u+s /bin/ping

悪い例

/etc/sudoers
%users  ALL=(ALL) NOPASSWD: /usr/bin/ping
~/.bashrc
alias ping='sudo ping'
7
6
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?