Find the answer to your Linux question:
Results 1 to 3 of 3
Dear All, I would like to confine a user to certain folders only either when the user logs via ssh or sftp? Any idea where n how to do it? ...
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    64

    Confine user to certain folders only

    Dear All,
    I would like to confine a user to certain folders only either when the user logs via ssh or sftp? Any idea where n how to do it? I read about chroot/jail but very confuse how to do it?

  2. #2
    Linux Guru
    Join Date
    May 2011
    Posts
    1,843
    What is so confusing about it, if I may ask? Just make sure you're using a recent enough version of openssh (5.x?). Add a couple of lines to the sshd config file, restart it, and test it

    Show what you've tried, and indicate any tut you've followed.

  3. #3
    Just Joined!
    Join Date
    Oct 2011
    Posts
    50
    Try this howto:
    Chrooted SSH/SFTP Tutorial (Debian Lenny) | HowtoForge - Linux Howtos and Tutorials

    It explains how to implement it for Debian

Posting Permissions

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