Table of Contents

Ubuntu - FTP - VSFTP - Chroot users in VsFtpd

To jail / chroot users (not the VsFtpd service), there are three choices. Search for “chroot_local_users” on the file and consider one of the following:


1. All users are jailed by default:

vi /etc/vsftpd.conf

and modify as:

chroot_local_user=YES
chroot_list_enable=NO

2. Just some users are jailed:

vi /etc/vsftpd.conf

and modify as:

chroot_local_user=NO
chroot_list_enable=YES

Create the file /etc/vsftpd.chroot_list with a list of the jailed users.


3. Just some users are "free":

vi /etc/vsftpd.conf

and modify as:

chroot_local_user=YES
chroot_list_enable=YES

Create the file /etc/vsftpd.chroot_list with a list of the “free” users.