Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: CHROOT SSH User

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1


    How can I CHROOT a user when he/she logs into SSH. I am looking for it to be like how cPanel can CHROOT a users SSH access. If there is any other way to do it, I could really use it. I just need people locked out of getting out of their home directory.

    Any help appreciated.
    If you love something, emerge it

  2. #2
    Linux Newbie
    Join Date
    Jul 2004
    You could set their shell to rsh. rsh is a restricted shell, then just set up what you want executed at startup in $HOME/.profile.

    you could also set the shell to scponly. this restricts people to using scp and ls. so basically they can only move files on and off of the computer.

    the previous ones are a bit simpler. but if you still want to chroot, this will help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts