Ron Gabriel

Welcome to my own personal blog

How to install VSFTPD in Ubuntu 14.04 Server


FTP is very important service to have running on a Linux server as it is used to transfer files from one host to another over TCP network. This tutorial will explain how to setup FTP server on ubuntu 14.04 .
I’ve chosen VsFTPD in this instance but there are others available.

Setup FTP server on Ubuntu 14.04

Step 1 » Update repositories .

[email protected]:~$ sudo apt-get update

Step 2 » Install VsFTPD package using the below command.

[email protected]:~$ sudo apt-get install vsftpd

Step 3 » After installation open /etc/vsftpd.conf file and make changes as follows.

Uncomment the below lines (line no:29 and 33).

local_umask=022 » Uncomment the below line (line no: 120 ) to prevent access to the other folders outside the Home directory.

chroot_local_user=YES and add the following line at the end.

allow_writeable_chroot=YES» Add the following lines to enable passive mode.


Step 4 » Restart vsftpd service using the below command.

[email protected]:~$ sudo service vsftpd restart

Step 5 » Now ftp server will listen on port 21. Create user with the below command.Use /usr/sbin/nologin shell to prevent access to the bash shell for the ftp users .

[email protected]:~$ sudo useradd -m isla -s /usr/sbin/nologin
[email protected]:~$ sudo passwd isla

Step 6 » Allow login access for nologin shell . Open /etc/shells and add the following line at the end.


Now try to connect this ftp server with the username on port 21 using winscp or filezilla client and make sure that user cannot access the other folders outside the home directory.

Tagged ,

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.