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

I want to give SFTP access to a particular user but would like to jailroot it so that her view is limited to only her home directory. For the rest of the users of the system, it should remain as normal.

Is it possible?

share|improve this question
up vote 6 down vote accepted

The 'match' feature in sshd_config allows you to specify rules based on group membership or username.

Match user joe
ChrootDirectory /storage/public
ForceCommand /usr/libexec/sftp-server
share|improve this answer

You can also look at MySecureShell :

share|improve this answer

Sure, take a look at rssh. Here's a good how-to I was reading the other day:

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.