Contents

vsftpd Restrict User Directory Access

vsftp Config

1
vi /etc/vsftpd/vsftpd.conf
1
2
3
4
5
6
---
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
allow_writeable_chroot=YES
---
chroot_local_user
Restrict change directory to top level, user can move in user’s directory.
chroot_list_enable
If it’s YES - The user who registered below file can move to top level.
If it’s NO - The user who registered below file can not move to top level.
chroot_list_file
The user list is on the file.(One line must have one user id)
allow_writeable_chroot
If you set chroot_local_user is YES, and you want to write file on the account, you have to set allow_writeable_chroot is YES.

vsftpd Restart

1
service vsftpd restart