LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Restricting users to their home folder using vsftpd (https://www.linuxquestions.org/questions/linux-newbie-8/restricting-users-to-their-home-folder-using-vsftpd-4175416260/)

ust 07-11-2012 11:23 PM

Restricting users to their home folder using vsftpd
 
I use vsftpd , what to restrict user to home folder , I now set the below setting may do it .
chroot_local_user=YES

I wonder if I add this setting , it may apply to all users , all users may restrict user to home folder , if I just want to restrict 1 user only, what can I do ?



http://thextramoney.wordpress.com/20...ftpd-on-linux/

nguyencanhtoan 07-12-2012 12:09 AM

you can use options on /etc/vsftpd/vsftpd.conf file

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list

you have to touch file chroot_list and list user chroot in this file

Example : I want to chroot user ftp_u1
I use two top options after add user ftp_u1 to file chroot_list
vim /etc/vsftpd/chroot_list
ftp_u1


All times are GMT -5. The time now is 04:08 PM.