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

RonanRBR

Member
Aug 11, 2014
18
3
53
Fortaleza, Ceara, Brazil
cPanel Access Level
Root Administrator
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?
 
Last edited by a moderator:

sparek-3

Well-Known Member
Aug 10, 2002
2,039
229
368
cPanel Access Level
Root Administrator
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.
 

RonanRBR

Member
Aug 11, 2014
18
3
53
Fortaleza, Ceara, Brazil
cPanel Access Level
Root Administrator
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