If you are new to linux this might be a little difficult. Once you have some basics nailed, its super easy. Here’s how to get it working without worrying about usergroups etc etc. I just wanted to get it working with my WordPress setup (Apache).
First, install vsftpd
sudo apt-get install vsftpd
Configure your installation.
sudo nano /etc/vsftpd.conf
sudo vi /etc/vsftpd.conf
You need to have these to uncommented (Delete the initial “#”)
Setup password for your ubuntu user name
sudo passwd ubuntu
Give the permissions.
chown -R ubuntu /var/www/
Obviously, you can change the path with your requirement.
Restart the FTP service
sudo /etc/init.d/vsftpd restart
This enables the Uncomplicated Firewall built-in to Ubuntu on port 21. Don’t know about others.
sudo ufw allow 21
That’s it. Login to your FTP with “ubuntu” username and your password.