How to restrict user to home directory with VSFTPD

There are options in /etc/vsftpd.conf to help make vsftpd more secure. For example users can be limited to their home directories by uncommenting:


You can also limit a specific list of users to just their home directories:


After uncommenting the above options, create a /etc/vsftpd.chroot_list containing a list of users one per line. Then restart vsftpd:

sudo /etc/init.d/vsftpd restart

Leave a Comment

Your email address will not be published. Required fields are marked *