When you create a custom jailed shell mount, you can allow users of jailed shells to access additional directories on the server.
To create custom mounts that allow jailed shell users to access specified directories, perform the following steps:
/var/cpanel/jailshell-additional-mounts file with your preferred editor.
List each directory as a fully-qualified (or absolute) directory on a separate line. For example:
/usr/local/test1 /usr/local/test2 /usr/local/test3
Do not use relative paths, and do not append a trailing slash to the directory names.
For example, if you wish to specify the
If you do not format the directories in the
Custom mounts are read-only for jailshell users.
Save the file.
You cannot remove an entry in the
To unmount the
/usr/local/foo directory, run the following command:
The system does not unmount custom mounts when the user logs out of the jailed shell account.