Skip to main content

Jailed shell users can't access global configuration files on /etc

Comments

8 comments

  • cPRex Jurassic Moderator
    Hey there! I believe the instructions that Justin provided in your other recent post at would also apply here, as that would need to be included in the Jailshell configuration settings.
    0
  • RonanRBR
    Hey there! I believe the instructions that Justin provided in your other recent post at
    0
  • cPRex Jurassic Moderator
    Currently I don't have a better option to get that working except change their access to a normal shell.
    0
  • RonanRBR
    Currently I don't have a better option to get that working except change their access to a normal shell.

    thank you anyway
    0
  • sparek-3
    You can also add [font="courier new">/etc/man_db.conf to the contents of the file at: [font="courier new">/var/cpanel/jailshell-additional-files and then man pages should work in jailshell. i.e.: [font="courier new">echo "/etc/man_db.conf" >>/var/cpanel/jailshell-additional-files You'll have to log out and log back in The /var/cpanel/jailshell-additional-files may not exist and may need to be created. I'm not sure how wise it is to do this - but... at least it used to be a documented function of cPanel.
    0
  • cPRex Jurassic Moderator
    That file does get mentioned in the How to Create Custom Jailed Shell Mounts | cPanel & WHM Documentation page :D
    0
  • RonanRBR
    You can also add /etc/man_db.conf to the contents of the file at: /var/cpanel/jailshell-additional-files and then man pages should work in jailshell. i.e.: echo "/etc/man_db.conf" >>/var/cpanel/jailshell-additional-files You'll have to log out and log back in The /var/cpanel/jailshell-additional-files may not exist and may need to be created. I'm not sure how wise it is to do this - but... at least it used to be a documented function of cPanel.

    thank you
    0
  • laibakhan
    By the way thanks for this valuable post.
    0

Please sign in to leave a comment.