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.

Prevent cd ..

Discussion in 'General Discussion' started by longtex, Mar 1, 2004.

  1. longtex

    longtex Member

    Joined:
    Oct 14, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    For a domain owner logging in via ssh (or putty for those looking through windoze), how can I prevent him from cd'ing upward?

    That is, when he logs in, he's placed in /home/jimbo and I want to prevent him from doing a cd .. or cd /home (much less cd /usr/bin). I've been trying various combinations - I can prevent him from SEEing the directories and the files in them, but I haven't figured out how to keep him from getting into them... any ideas?
     
  2. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    JailShell.
     
  3. longtex

    longtex Member

    Joined:
    Oct 14, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Thanks!

    So... I set that domain to jailshell instead of bash. Some directories no longer show up, but others are still there. Using mc lets him navigate around. Is there a config file for it? I've been looking but haven't come up with the docs yet - any links you might have will be appreciated.
     
Loading...

Share This Page