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
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.

2 Replies to “How to install and setup ftp server in ubuntu 14.04, 14.10, 15.04 using vsftpd”

  1. Hi Rohit,

    I am using your script for country state and city but there are some bugs in the API request for fetching the data(City according to the chosen state)for example When I choose Country (‘Canada’) and State (‘British Columbia’) the cities are not displaying in api It’s returning the empty array.

    With Best Regards
    Gulshan Ali

  2. That is the free database, Some data may be missing, You need to download full source with database and have to add edit records manually which are not correct.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.