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?

link|improve this question

feedback

3 Answers

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
link|improve this answer
feedback

You can also look at MySecureShell : http://mysecureshell.sourceforge.net

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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