This document provides instructions about how to grant jailed shell users access to additional files outside of the user's
cPanel, Inc. does not support this workaround. Also, we do not guarantee that it will work in the future, and it may cause security and stability issues.
Add a file or directory to the jailed shell
To add a file or directory, perform the following steps:
- Connect to your server via SSH as the
- Use your preferred text editor to add the file or directory's full path to the
- Save and close the
/var/cpanel/exim.conf.depsfile. Users who log in to the jailed shell can now access to the file or directory that you specified in Step 2.
Use your preferred text editor to add the following path to the
Save and close the
This step makes certain that future cPanel & WHM updates do not overwrite the
/var/cpanel/exim.conf.depsfile. If you do not perform this step, the system may overwrite your changes.
To revoke jailed shell users' access to a file or directory, remove it from the
For example, to allow jailed shell users to access the
/etc/hosts file, add the following filepath to the
Then, add the following path to the