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.
If you are running into this issue on a CloudLinux system with a user in CageFS it may be necessary to reinitialize CageFS using the following command:
This will reinitialize CageFS (make backup and recreate CageFS).