The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can I restrict certain commands in Jailed Shell?

Discussion in 'Security' started by M373H, Jul 27, 2015.

  1. M373H

    M373H Member

    Joined:
    Jan 18, 2015
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I have jailed shell enabled for user accounts however they are able to execute commands like wget, top and others which I don't want users to be able to run. So how can I restrict those commands in the jailed shell environment? I couldn't locate the proper configuration file for this.

    Thank you :)
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I don't see any documented or supported methods of disabling specific commands to users that are assigned jailed shell access. You can grant access to additional directories via the instructions at:

    How to Create Custom Jailed Shell (Jailshell) Mounts

    Is there any specific reason you need to disable commands such as wget when such commands are already available through cron jobs?

    Thank you.
     
Loading...

Share This Page