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!

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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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