Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

3 Answers 3

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 : http://mysecureshell.sourceforge.net

share|improve this answer

Sure, take a look at rssh. Here's a good how-to I was reading the other day: http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html

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.