WillSquire
9/18/2015 - 2:19 PM

VSFTPD

VSFTPD

Open the VSFTPD config file with:

sudo nano /etc/vsftpd.conf

Stop anonymous users from using FTP:

anonymous_enable=NO

Map FTP user to unix user account:

local_enable=YES

Allow users to write with:

write_enable=YES

Lock users in their root directory with:

chroot_local_user=YES

If only certain unix users should be allowed to login with FTP, put the following:

# Allow FTP access to only certain unix users
userlist_enable=YES
userlist_file=/etc/vsftpd.userlist
userlist_deny=NO

Then create the FTP enabled user list file:

sudo nano /etc/vsftpd.userlist

and add in each username on seperate lines.

Restart service for settings to take effect:

sudo service vsftpd restart

Check service is running with:

service vsftpd status