[K12OSN] Setting directory or chrooting for sftp users?

Dimitri Yioulos dyioulos at firstbhph.com
Thu Mar 2 20:17:06 UTC 2006


On Thursday March 02 2006 2:57 pm, john wrote:
> Hi all,
>
> We we're working on a LAMP based web server. We have several teachers
> who maintain their own webpages. I am looking for a way to have them
> login via SFTP but show up in their web directory rather than in
> /home.
>
>  Is their a place in ssh_config or their bash profile that I can
> control their starting directory. Would it be difficult to chroot them
> into /var/www/html/their_directory?
>
> Your sage advice would be very much appreciated.
>
> John
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>


There are chroot patches for OpenSSH.  rssh also support chroot.  Finally, 
there are apps like jail, pam_chroot, and chrootjail.

HTH.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the K12OSN mailing list