Setup VSFTPD

Install VSFTPD:

# apt-get install vsftpd

Change the config file for vsftpd:

# nano /etc/vsftpd.conf

Make at least the following changes:

local_enable=YES
write_enable=YES
chroot_local_user=YES

Restart the vsftpd service:

# service vsftpd restart

Create a local user so people can authenticate when trying to connect to the FTP server.

useradd username
passwd username

Add user’s directory to /home and chmod it to:

# chmod a-w /home/user-dir

If you want users to be able to upload files and create folders use following commands:

# chmod g-w /home/user-dir
# chown root:username /home/user-dir