To do this, open the /etc/vsftpd.conf file:
vim /etc/vsftpd.conf
and make the following modifications (uncomment if necessary):
chroot_local_user=YES
/etc/init.d/vsftpd restart
Now all users will be jailed to their own home directory when using FTP.
Now, lets say you only want to jail certain users, and allow other users to browse other directories. To do this, you’ll want to again edit the configuration file.
Now, lets say you only want to jail certain users, and allow other users to browse other directories. To do this, you’ll want to again edit the configuration file.
vim /etc/vsftpd.conf
uncomment the following lines:
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
chroot_list_file=/etc/vsftpd.chroot_list
/etc/init.d/vsftpd restart
Now you will need to create the /etc/vsftpd.chroot_list file and add in users you do NOT want to jail. By default, all users will be jailed. In the /etc/vsftpd.chroot_list file you can specify what users to allow to browse all directories.
No comments:
Post a Comment