Now, your Samba file server is up and working. It is high time to configure the vsFTP server. Anonymous users can download your file from your FTP server but they cannot upload and change anything in it. Local users can access their local home directories (read and write) by using FTP client, e.g. Filezilla or gFTP.
Edit the file at /etc/vsftpd.conf :
sudo nano /etc/vsftpd.conf
Uncomment and change the following lines (removes the “#”in front of the entry) :
If you are behind a router or firewall, you need to add the following lines at the end of the file :
Change the ports 50000-50100 at your desire and add this port range to the router’s port forwarding section or virtual server section. The pasv_address should be the IP address of your server (yours may different from me).
Remember to forward port 20 and 21 out at your router.
Anonymous users can download files from /home/ftp and you can put some files there for them to download.
To restart your vsFTPd :
sudo /etc/init.d/vsftpd restart