You are not logged in.

#1 2023-07-26 20:34:40

dreieck
Member
Registered: 2012-10-08
Posts: 56

ping as user: "socket: Operation not permitted", later works.

Ahoj,

recently, after a fresh installation, I have the issue that as a normal user after a (re)boot ping does not work.

When I want to ping a host, e.g. `ping gmx.de`, it fails with

ping: socktype: SOCK_RAW
ping: socket: Operation not permitted
ping: => missing cap_net_raw+p capability or setuid?

Ping as root works:

PING gmx.de (82.165.229.152) 56(84) bytes of data.
64 bytes from redir-ba.web.de (82.165.229.152): icmp_seq=1 ttl=246 time=59.2 ms
64 bytes from redir-ba.web.de (82.165.229.152): icmp_seq=2 ttl=246 time=68.7 ms
[...]

Sometimes, "magically" ping capability comes back and I can ping as a normal user, and I can continue so until next boot.

This is really strange (especially the erratic behaviour), does anyone has an idea what can cause this or how to trace it down?

Offline

#2 2023-07-26 21:14:18

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: ping as user: "socket: Operation not permitted", later works.

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

Board footer

Powered by FluxBB