====== Ping as user ====== ===== Problem ===== Podczas próby pingowania jako użytkownik, otrzymujemy wynik: ping: icmp open socket: Operation not permitted ===== Rozwiązanie ===== Rozwiązania są dwa: 1. Poprawiamy Linux capabilities dla ''/bin/ping'', pozwalając mu korzystać z ''raw sockets'': setcap cap_net_raw=ep /bin/ping **Lub:** 2. Reinstalujemy pakiet ''iputils-ping'', po reinstalacji apt wykona powyższe za nas: apt-get install --reinstall iputils-ping Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 3 not upgraded. Need to get 53.7 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://ftp.fr.debian.org/debian/ jessie/main iputils-ping armhf 3:20121221-5+b2 [53.7 kB] Fetched 53.7 kB in 0s (1,938 kB/s) (Reading database ... 23890 files and directories currently installed.) Preparing to unpack .../iputils-ping_3%3a20121221-5+b2_armhf.deb ... Unpacking iputils-ping (3:20121221-5+b2) over (3:20121221-5+b2) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up iputils-ping (3:20121221-5+b2) ... Setcap worked! Ping(6) is not suid! ===== Informacje dodatkowe ===== Więcej informacji na ten temat: * [[http://linux.die.net/man/7/capabilities|capabilities(7)]] * [[http://linux.die.net/man/8/setcap|setcap(8)]]