Run:
sudo apt-get install vsftpd
Edit /etc/vsftpd.conf
Disable anonymous login
anonymous_enable = NO
Allow local users to login
local_enable = YES
Allow local users to write to a directory
write_enable = YES
'Jail' the local user to their own home directory
chroot_local_user = YES
Restart vsftpd:
service vsftpd restart
Add an FTP user:
adduser ftp_example_user
Create a directory for this user in their home directory. Change the home directory ownership to root, create a directory that you want to upload to, e.g., uploads and change the ownership of that folder to our user, in this case, ftp_example_user.
sudo chown root:root /home/ftp_example_user
sudo mkdir /home/ftp_example_user/uploads
sudo chown ftp_example_user:ftp_example_user /home/ftp_example_user/uploads
We finish the setup by restarting vsftpd.