When attempting to ping as a regular user (not root), you might encounter the following error.
ping: socket: Operation not permitted
Check to make sure that the user has their shell set to
or any shell that is not
Once set, the user will need to logout of Terminal or SSH so that the changes can take effect.
For more information on how to change the shell of a user and the differences between the Jailed Shell and Regular Shell environments, please refer to the articles below.