Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    SFTP Directories


    I'm using the SFTP from ssh server to make my connections to my Debian linux 6.0. I've created a new user with a goal of manage a single server, GTA. So on the creation I defined his home directory as /home/gta, BUT the user can simply do cd.. and his out of that folder and he can navigate through all the server directories. How can I block this use to navigate ONLY in his home directory?

  2. #2
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Either at home or at work or down the pub
    Have a read through this for some solutions. I would use the ChrootDirectory approach as a first try.
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!

    The Fifth Continent

  3. #3
    When I set up my file server I used ChrootDirectory (with only SFTP access - no shell login), as elija suggested, by following the steps on this page:

    h t t p : / / w w w

    I did things a little differently, though. The instructions on that page use a separate directory for the SFTP users, but I wanted to keep the user directories in /home, so I gave /home root:root user/group ownership and the individual home directories have $USER:sftpusers user/group ownership.

  4. $spacer_open

Posting Permissions

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