Lacking privilege for raw socket

hi all, i’m facing the issue when I want to perfom “ping”

Message is “ping: Lacking privilege for raw socket.”

sudo cp /sbin/ping* /usr/local/bin/



have fun!

Alternatively,

change "/etc/paths"

from:

#

/usr/local/bin

/usr/bin

/bin

/usr/sbin

/sbin

#

to:

#

/usr/sbin

/sbin

/usr/local/bin

/usr/bin

/bin

#

Hi guys! Same problem here after compile/install inetutils.


The alternative solution for me was set the suid for the ping command:

sudo chmod u+s /usr/local/bin/ping


Hope it helps!

Lacking privilege for raw socket
 
 
Q