ping: socket: Operation not permitted

HaJo lug at hoetger.org
Thu May 11 10:33:20 CEST 2023


Moin Michael,
Am 11.05.23 um 08:08 schrieb Michael Westermann:
> setcap cap_net_raw+ep /bin/ping


Jau, geht. Ich habe jetzt keine Lust zu rebooten. Ich gucke dann beim 
nächsten regulären reboot. Vielen Dank erst mal.

root at nyota:~# getcap /bin/ping
root at nyota:~# setcap cap_net_raw+ep /bin/ping
root at nyota:~# getcap /bin/ping
/bin/ping cap_net_raw=ep
root at nyota:~#
Abgemeldet
hajo at nyota:~ $ ping zen.apipa
PING zen.apipa (169.254.75.26) 56(84) bytes of data.
64 bytes from zen.apipa (169.254.75.26): icmp_seq=1 ttl=64 time=24.8 ms
64 bytes from zen.apipa (169.254.75.26): icmp_seq=2 ttl=64 time=25.1 ms
^C
--- zen.apipa ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 24.830/24.985/25.141/0.155 ms
hajo at nyota:~ $
Liebe Grüße
-- 
Hans-Joachim Hötger

- nicht umsonst wird SNMP gerne mit "Security is not my problem"
übersetzt.                Charly Kühnast (Linux Magazin 05/2002)



More information about the Linux mailing list