How to install and configure FTP server in Ubuntu 12.04 LTS

 In this tutorial we will learn how to install and configure vsftpd server in Ubuntu 12.04 LTS
In this post we will configure the FTP server for anonymous user only.
In upcoming post I will show some more advanced and secure FTP server configuration.

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

vsftpd_precise

After installing, run the commands to open vsftpd.conf file.
sudo gedit /etc/vsftpd.conf

vsftpd_precise_1

Finally, edit the three lines highlighted below and save the file.
#anonymous_enable=YESlocal_enable=YESwrite_enable=YES

vsftpd_precise_2

Restart the server by running the commands below.
sudo service vsftpd restart

vsftpd_precise_3

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

Leave a Reply

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