0

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?

sharjeel
  • 199
  • 1
  • 11

3 Answers3

6

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
Alex Holst
  • 2,240
  • 1
  • 15
  • 13
1

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

Deimosfr
  • 594
  • 2
  • 5
0

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

fredden
  • 393
  • 1
  • 10