The officially official Devuan Forum!

You are not logged in.

#1 2024-04-12 12:55:04

jemadux
Member
From: Greece
Registered: 2023-03-09
Posts: 30  

[SOLVED] ping issue

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 | XFCE
Greetings from Greece

Offline

#2 2024-04-12 15:39:03

stopAI
Member
Registered: 2023-04-04
Posts: 131  

Re: [SOLVED] ping issue

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

#3 2024-04-12 21:45:17

jemadux
Member
From: Greece
Registered: 2023-03-09
Posts: 30  

Re: [SOLVED] ping issue

thank you very much .. its solved


Dev1 Stable | openrc | XFCE
Greetings from Greece

Offline

Board footer