In this tutorial we are going to talk about creating your own ftp server in ubuntu and will connect with filezilla client. vsftpd is excellent available package in ubuntu to setup ftp server quickly and more secure way.
You can quickly install vsftpd on your machine by running below command
sudo apt-get install vsftpd
You can edit the configuration file in your favorite command line editor VIM or Nano
sudo nano /etc/vsftpd.conf OR sudo vim /etc/vsftpd.conf
You can make some configuration level changes like, if you want to deny access to Anonymous user
you must have to switch the Anonymous_enable from YES to NO
You can make more changes in configuration file as per your need and requirement.
Creating ftp user
You can easily create ftp users with limited permissions by running below command.
sudo adduser ftpuser
sudo chown root:root /home/ftpuser
We need to create a separate directory within this home directory where files can be uploaded. Then, we need to give the permission of this directory to newly created FTP user:
sudo mkdir /home/ftpuser/files sudo chown ftpuser:ftpuser /home/ftpuser/files