You are not logged in.
Pages: 1
as normal user
ping google.com
ping: socktype: SOCK_RAW
ping: socket: Operation not permitted
ping: => missing cap_net_raw+p capability or setuid?
as root user
ping -c 5 google.com
PING google.com(fra02s19-in-x0e.1e100.net (2a00:1450:4001:808::200e)) 56 data bytes
64 bytes from fra15s46-in-x0e.1e100.net (2a00:1450:4001:808::200e): icmp_seq=1 ttl=116 time=34.9 ms
64 bytes from fra15s46-in-x0e.1e100.net (2a00:1450:4001:808::200e): icmp_seq=2 ttl=116 time=40.8 ms
64 bytes from fra15s46-in-x0e.1e100.net (2a00:1450:4001:808::200e): icmp_seq=3 ttl=116 time=38.1 ms
64 bytes from fra15s46-in-x0e.1e100.net (2a00:1450:4001:808::200e): icmp_seq=4 ttl=116 time=37.4 ms
64 bytes from fra15s46-in-x0e.1e100.net (2a00:1450:4001:808::200e): icmp_seq=5 ttl=116 time=35.0 ms
--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 34.934/37.240/40.754/2.157 ms
that is happening in devuan stable ... any ideas ?
Dev1 Stable | openrc | MATE
Greetings from Greece
Offline
it seems that the issue of not being able to ping from a normal user account.
The error message
ping: socktype: SOCK_RAW
followed by
ping: socket: Operation not permitted
indicates that the user does not have the necessary permissions to use the ping command.
The error message
ping: => missing cap_net_raw+p capability or setuid?
suggests that the user needs to have the cap_net_raw capability or
setuid permission
to use the ping command.
The user can add the cap_net_raw capability to their account using the following command:
sudo setcap cap_net_raw+ep /bin/ping
P.S.
You're not sending an ICMP echo request, most likely (check "ip a" at the time) you don't have a lease but only the IPv6 link local address.
Offline
thank you very much .. its solved
Dev1 Stable | openrc | MATE
Greetings from Greece
Offline
Pages: 1