adding/removing programs from jailshell

vis

Member
Feb 16, 2002
15
0
301
The jail shell itself (non cpanel version) normally has the ability to add or remove programs from a specific user's shell. These programs are not included with the jailshell that cpanel distributes. How can we add/remove programs from a specific user's account ? The virtual FS exists under /home/virtfs but there are no files. I can't find any config files that the jailshell works from either.
 

Jeff75

Well-Known Member
Apr 11, 2003
555
0
166
In FreeBSD you can prevent users from running TOP by moving it from /usr/bin/top to /usr/sbin/top so only the super user can run it.

If you'd like to limit the processes so the user can only see their own do this:

Put this in /etc/sysctl.conf:

kern.ps_showallprocs=0

Then run this command:

sysctl kern.ps_showallprocs=0

cPanel.net Support Ticket Number:
 

Jeff75

Well-Known Member
Apr 11, 2003
555
0
166
I haven't tried disabling it by moving it like I mentioned above, but I made it so they can only see the processes which are run under their USERID.

cPanel.net Support Ticket Number:
 

goodmove

Well-Known Member
May 12, 2003
640
3
168
Originally posted by Jeff75
If you'd like to limit the processes so the user can only see their own do this:

Put this in /etc/sysctl.conf:

kern.ps_showallprocs=0

Then run this command:

sysctl kern.ps_showallprocs=0
Will that work in Redhat? or is it just a Freebsd option?

cPanel.net Support Ticket Number: