Thread: chroot / vsftpd
View Single Post
  #2  
Old 3rd May 2005, 13:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Put

Code:
passwd_chroot_enable=YES
in

Code:
/etc/vsftpd.conf
and restart vsftpd. That chroots each user to the directory specified in /etc/passwd. If you want to chroot a user to another directory than his home directory, simply put a dot (.) in the path to his home directory in /etc/passwd:

admin:x:1000:1000:admin:/home/./admin:/bin/bash

would chroot the user admin to /home instead of /home/admin.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote