Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

adding/removing programs from jailshell

Discussion in 'General Discussion' started by vis, Mar 30, 2003.

  1. vis

    vis Member

    Joined:
    Feb 16, 2002
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    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.
     
  2. krellen

    krellen Member

    Joined:
    Oct 1, 2002
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    151
    I too would like to find an answer to this!
     
  3. krellen

    krellen Member

    Joined:
    Oct 1, 2002
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    151
  4. DrChaos

    DrChaos Active Member

    Joined:
    Dec 23, 2001
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    306
    Users who have jailshell can run top and ps... any way to prevent this?
     
  5. chakky

    chakky Well-Known Member

    Joined:
    Sep 22, 2002
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    156
    whats the relation between /home/virtfs and jailshell??
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    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:
     
  7. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    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:
     
  8. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    624
    Likes Received:
    1
    Trophy Points:
    168
    Will that work in Redhat? or is it just a Freebsd option?

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice