Setting up FTP Server in ubuntu

Vsftpd is the most easy ftp server to setup.
Installing vsftpd:
From Synaptic:
Goto Synaptic Package Manager. Search for “vsftpd”. Mark for installation & apply. or
From terminal typeout:
$ sudo apt-get install vsftpd

There are various settings that needs to be done before starting. These are specified in the configuration file for vsftpd located in “/etc/vsftpd.conf”. The default configuration is a little bit paranoid, not so usable for file sharing.
We can edit this, but lets keep a copy of the original somewhere.
$ sudo cp /etc/vsftpd.conf /etc/vsftpd_conf_original.txt

Now,we start editing the options:
1. Open the configuration file using:
$ sudo gedit /etc/vsftpd.conf

2. I have used the following configuration for my FTP server. It allows anonymous access and anonymous users are jailed(thats the term used) to the chroot(eg. /home/ftp will be the default) directory. Enable/ Uncomment these lines in vsftpd.conf:
(Replace “abhishek” with your username on linux)
ftpd_banner=Welcome to Abhishek's FTP service.

Keep other options as default.
Save. Restart the FTP server (as below).

3. To run this server:
sudo /etc/init.d/vsftpd start
To stop it:
sudo /etc/init.d/vsftpd stop
To restart it:
sudo /etc/init.d/vsftpd restart

4. You can make changes to the configuration file anytime. But remember to restart the ftp server, using the above command, to apply the changes.
After this your ftp server should start functioning.

5. To Allow FTP access to files outside the home directory chroot, see the Reference#2 below.

To access the files, there are many ways.
1. Open a browser like Internet explorer, firefox, opera etc. Type the url as
“ftp://servername” for anonymous access. e.g. or
“ftp://username@servername” for login. e.g. ftp://abhishek@
Then the files will get listed.
In this method, you can only download files from the FTP server.

2. Using gFTP- Install gFTP from Synaptic Package Manager. Run it from Applications>Internet>gFTP. Enter the username and password to login(For anonymous access, give username as “anonymous” and any relevant password). Then start sharing files.

3. Using Command Prompt-
In windows, open command prompt or
In Linux, open terminal
and type:
ftp servername or
ftp ftp://username@servername

To download a file use:
ftp>get remote-file [local-file]
To upload:
ftp>put local-file [remote-file]
To close connection:


Share your thoughts with us!!!

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s