Quantcast
Channel: Armbian news
Viewing all articles
Browse latest Browse all 486

ping fails with "Operation not permitted"

$
0
0

When I do a ping, I get this error:

cubie@cubieboard:~$ ping www.google.com
ping: icmp open socket: Operation not permitted

There is a discussion of this elsewhere: https://discuss.zendesk.com/hc/en-us/articles/202374517-Linux-ping-command-fails-with-icmp-open-socket-Operation-not-permitted-

Doing the following fixes things:

root@cubieboard:/bin# chmod 4755 ping
root@cubieboard:/bin# ls -tlr ping
-rwsr-xr-x 1 root root 34752 Nov  8  2014 ping

Then ping works:

cubie@cubieboard:~$ ping www.google.com
PING www.google.com (172.217.2.196) 56(84) bytes of data.
64 bytes from iad23s23-in-f4.1e100.net (172.217.2.196): icmp_seq=1 ttl=57 time=44.3 ms
64 bytes from iad23s23-in-f4.1e100.net (172.217.2.196): icmp_seq=2 ttl=57 time=44.2 ms
64 bytes from iad23s23-in-f4.1e100.net (172.217.2.196): icmp_seq=3 ttl=57 time=44.2 ms
^C
--- www.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 44.267/44.305/44.360/0.176 ms
cubie@cubieboard:~$ 

Can ping be given the correct permission so that this maneuver isn't required?

 

Thanks,

Chris


Viewing all articles
Browse latest Browse all 486

Trending Articles