Bug Report:
What happened?
Cant use ping ping 8.8.8.8 ping: socktype: SOCK_RAW ping: socket: Операция не позволена ping: => missing cap_net_raw+p capability or setuid?
Kernel version
6.1.0-1023-rockchip
SBC model
Orange PI5B
What operating system are you seeing this problem on?
Ubuntu 24.04 LTS (Noble Nombat)
Relevant logs
ping 8.8.8.8
ping: socktype: SOCK_RAW
ping: socket: Операция не позволена
ping: => missing cap_net_raw+p capability or setuid?
Same here with nano-pc T6
ping 8.8.8.8 ping: socktype: SOCK_RAW ping: socket: Operation not permitted ping: => missing cap_net_raw+p capability or setuid?
but:
sudo ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=19.6 ms
I highly doubt this is a problem with Ubuntu Rockchip, check your ISP and internet settings.
@Joshua-Riek If the problem was with the connection, then the ping from the sudo user also did not pass.
Problem can be solved with :
sudo sysctl -w net.ipv4.ping_group_range="0 1000"
han@han-desktop:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=21.2 ms
@hanvinke Thank you very much this really helped.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 14 days. Thank you for your contribution!
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.