How to allow non-root user to use ping without sudo

How to allow non-root user to use ping without sudo

On some versions of Nodegrid OS, non-root users will get an error when trying to use ping without invoking a sudo shell:

[admin@nodegrid /]# shell
admin@nodegrid:~$ ping 10.0.0.1
ping: socket: Operation not permitted

To allow ping to be used in this circumstance, please follow these steps:
  1. Log in as admin
  2. Access the shell as root: shell sudo su -
  3. Update sysctl.conf: echo 'net.ipv4.ping_group_range = 0 2147483647' >> /etc/sysctl.conf 
  4. Read in the updated file: sysctl -p /etc/sysctl.conf