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.

Monitoring jailshell

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

  1. paulkoan

    paulkoan Well-Known Member

    Joined:
    Nov 24, 2006
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    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?

    Cheers,

    Paul
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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 SourceForge.net

    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.
     
Loading...

Share This Page