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!

Monitoring jailshell

Discussion in 'Security' started by paulkoan, Nov 2, 2010.

  1. paulkoan

    paulkoan Well-Known Member

    Nov 24, 2006
    Likes Received:
    Trophy Points:
    Is it possible to get jailshell to keep a copy of the commands typed into it somewhere outside of the users environment, as a crude form of monitoring? Like a duplicate of history.

    It looks like it is derived from bash, so perhaps not.

    Any ideas?


    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst Staff Member

    Oct 2, 2010
    Likes Received:
    Trophy Points:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello Paul,

    You may want to look into these options:

    sudosh2 | Download sudosh2 software for free at

    Logging shell commands and send it out - The UNIX and Linux Forums

    The first I know handles sudo sessions to track users who have sudo, but I'm not certain if it provides non-sudo access accounts such as jailed shell.

    There is likely some option to grab these commands otherwise from the user's bash history and either send them or log them to some file with the user's name, but that would require either tracking down a script or creating one to do that.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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