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 [keep it disabled by hash]
####chroot_local_user = YES####
Restart vsftpd:
service vsftpd restart
Add an FTP user:
adduser sammy
OR
adduser -d /var/www/html/ sammy
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, sammy.
sudo chown root:root /home/sammy
sudo chown sammy:sammy /var/www/html
usermod -d /var/www/html/ sammy
We finish the setup by restarting vsftpd.