Install and Setup FTP Server (VSFTPD) in Ubuntu 12.04 (Precise Pangolin)

If you run a personal website and you want to upload files and folder to the webserver or just want to download files using FTP clients, then you’ll have to install a FTP Server (VSFTPD).

By default, Ubuntu or most Linux distributions do not come with FTP servers installed. And the most popular FTP server in the Linux ecosystem is VSFTPD server. When it is installed and configured, you’ll be able to upload/download files to and from a Linux server, including Ubuntu and this tutorial is going to show you how to make that happen.


  • Install and Configure VFTPD in Ubuntu 12.04
  • Enjoy!


To get started, press Ctrl – Alt – T on your keyboard to open Terminal. When it opens, run the commands below to install VSFTPD.

sudo apt-get install vsftpd




After installing, run the commands to open vsftpd.conf file.

sudo gedit /etc/vsftpd.conf




Finally, edit the three lines highlighted below and save the file.





Restart the server by running the commands below.

sudo service vsftpd restart




The important to remember when editing the file is to comment out ( # ) anonymous_enable=YES and remove the comments for both local_enable=YES and write_enable=YES.


When editing vsftpd.conf file from a server without GUI, you’ll have to run the commands below:

sudo vi /etc/vsftpd.conf


Then use the arrow keys to move up, down, left and right. Select the letter you want to delete and press X .

To insert characters, press I

When done, press Esc key and type this:  :wq


To access the server, download popular FTP clients (Filezilla) and connect to the server.


8 thoughts on “Install and Setup FTP Server (VSFTPD) in Ubuntu 12.04 (Precise Pangolin)”

  1. Thank you so much you are a god :3 this tutorial is amazing and easy, I prefer text tutorial to long drawn out videos and this worked just fine and much faster and unlike a lot of tutorials actually works with error or need for my own adjustment.

  2. Can you please email me how I can use this across my intranet? like on the same router, i need to be able to access my files across all computers through this server and when i try to connect with my laptop i set publicFTP and than enter the IP address 192.168 for intranet and port 21 but it says no route to host

  3. NVM it finally connects now i just had to wait for a little while, but one thing tho? what directory do i have to go to on the server I installed FTP on to create folders and such that will show up when i connect to this server?

    also as well how do i switch the directory to use an external hard drive?

  4. WOW you pretty much ripped off Eli The Computer Guy @ ‘s you tube tutorial word for word! Congrats!

  5. Just a quick note – commenting out “anonymous_enable=YES” allows anonymous log in by default. It says this right above that line. Instead, switch YES for NO and don’t comment out.


Leave a Reply