Announcement

Collapse
No announcement yet.

How to Add Directories to Jailed Shell (VirtFS)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Add Directories to Jailed Shell (VirtFS)

    Overview :

    This document provides instructions to grant jailed shell users access to additional files outside of the user's home directory.

    Warning: This is an unsupported workaround. It is not guaranteed to work in the future, and 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:
    1. Log in to the shell.

    2. Use the su or sudo command to become the root user.
    Note: This command requires the root password.

    3. Use your preferred text editor to add the file or directory's full path to the /var/cpanel/exim.conf.deps file.

    4. Save and close the /var/cpanel/exim.conf.deps file. Users who log in to the jailed shell now have access to the file.

    5. Use your preferred text editor to add the following path to the /etc/cpanelsync.exclude file: /var/cpanel/exim.conf.deps

    6. Save and close the /etc/cpanelsync.exclude file.

    Important: This step makes certain that future cPanel & WHM updates will not overwrite the /var/cpanel/exim.conf.deps file. If you do not perform this step, your changes may be overwritten.

    Example

    For example, if you want to allow jailed shell users to access the /etc/hosts file, add the following path to the /var/cpanel/exim.conf.deps file: /etc/hosts

    Then, add the following path to the /etc/cpanelsync.exclude file: /var/cpanel/exim.conf.deps


    Regards,
    Dexter
    http://webhosting.uk.com
Working...
X