[KLUG Members] ssh lock a user in a single directory

Richard Harding members@kalamazoolinux.org
Mon, 10 May 2004 10:05:15 -0400


I have a user off site that has a web site subfolder they manage. I 
would like to have them use scp to upload/remove files. I have created 
them an account, but I am having trouble locking them in /var/www/subdir 
folder for all of their work. I found a way to chroot users that come in 
with sftp to their home directory, but I cannot seem to get it to work. 
The ChRootUsers is a bad command when I try to reload the ssh config. 
This also does not allow me to lock them into the selected directory.

Any ideas as to the best way of doing this?

Thanks

Rick