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.

jail shell

Discussion in 'General Discussion' started by rusel, Sep 29, 2005.

  1. rusel

    rusel BANNED

    Joined:
    Aug 1, 2005
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Poland
    Hello, I can`t find info about restrictions of jailshell ... could somebody tell me something about it?

    Regards.
     
  2. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    It allows your users to have SSH access that is limited to their home directory. They can't leave their directory and browse other customers home directories.
     
  3. calande2

    calande2 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I set up jail shell for an account, then I SSHed to the server using this account username/password. I was able to browse outside the home directory of this user. :confused:

    How come?

    Thanks,
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    What were you browsing? Most of the directories that can be seen in jailshell are symlinks to required binaries/libraries and not the real file system. Jailshells are good, but they can only be so good bearing in mind that you're still allowing SSH logins on a shared server, so they're not foolproof.
     
  5. calande2

    calande2 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    Ok, actually if I type cd /, I can go to the root directory, I can view all directories. Is there a way to prevent the user from going out of his home directory?
     
  6. allpar

    allpar Active Member

    Joined:
    Sep 16, 2005
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    I have been trying to find out the same thing. Using a jailshelled account I can still go up to /etc/ and view the contents of ANY lf the files.
     
Loading...

Share This Page