How to install and setup ftp server in ubuntu 14.04, 14.10, 15.04 using vsftpd
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
After downloading and configuration of vsftpd you can make changes in core configuration file as per your need, it is already configured with a reasonable amount of security.
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
Now assigned password for user and press enter key.
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
All done now open any ftp client like filezilla or coreftp and use ftp credential of user to connect with server via ftp.