Jailed shell users can't access global configuration files on /etc
I had create a /etc/nanorc configuration file on /etc.
My normal shell users can load normally this file and yours configurations, but jailed shell users can not.
So, how can I grant access to files like this for jailed shell user?
-
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 -
Currently I don't have a better option to get that working except change their access to a normal shell. 0 -
Currently I don't have a better option to get that working except change their access to a normal shell.
thank you anyway0 -
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 -
That file does get mentioned in the How to Create Custom Jailed Shell Mounts | cPanel & WHM Documentation page :D 0 -
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 you0 -
By the way thanks for this valuable post. 0
Please sign in to leave a comment.
Comments
8 comments