Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

under debian, I want to create a user who can only access to a specific folder (ie /home/user/some/folder/ (this folder already exists) , can do anything that he wants like modify, create delete a file) and no privilidge to any other stuff beside the given folder.

How can I achieve this under the standart Debian Lenny for SFTP ?

share|improve this question

If you don't want to take the hassle of setting up chroots just to lock down SFTP/SCP access, you should take a look at those two packages:

They provide you with enough options to limit several actions inside a SSH session. Both are meant for being used as a shell for selected users.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.