Introduction
When attempting to ping as a regular user (not root), you might encounter the following error.
ping 4.2.2.1
ping: socket: Operation not permitted
Procedure
Check to make sure that the user has their shell set to
/bin/bash
or any shell that is not
/usr/local/cpanel/bin/jailshell
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.
Differences Between Normal and Jailed Shell
Shell access is not enabled on your account
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:
cagefsctl --reinit
This will reinitialize CageFS (make backup and recreate CageFS).
Comments
0 comments
Article is closed for comments.