You are currently viewing FTP server on ubuntu 14.04

FTP server on ubuntu 14.04

FTP server on ubuntu 14.04

FTP is for  File Transfer Protocol which is used  for transferring files between machine, one will be a client machine, the other will be as a server machine.

FTP used TCP network for transferring files from one system to another system.

Let Start Configuring FTP server in Ubuntu 14.04

We are using VsFTPD for ftp server.

Setup FTP server on Ubuntu 14.04


Step 1 First we need to update our package.

sudo apt-get update

Step 2 Install VsFTPD in your system.

sudo apt-get install vsftpd

Step 3 After that open /etc/vsftpd.conf config file Then make some changes in it.

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

write_enable=YES
local_umask=022

Uncomment the below line (line no: 120 )

chroot_local_user=YES

Allow anonymous FTP? (Disabled by default)

 anonymous_enable=NO

and add the following line at the end.

allow_writeable_chroot=YES 

Add the following lines to enable passive mode.

pasv_enable=Yes
pasv_min_port=40000
pasv_max_port=40100 

Step 4 Restart vsftpd service .

sudo service vsftpd restart 

Step 5  ftp server used port 21. Steps for creating user for accessing file server.

sudo useradd -m kencorner -s /usr/sbin/nologin
sudo passwd pwdkencorner

also check if folder is created in home directory or not , if not then create folder

sudo mkdir /home/kencorner
sudo chmod -R 777 /home/kencorner

Step 6 now make changes in nologin shell . Open /etc/shells and at the end add below line.

sudi vi /etc/shells
/usr/sbin/nologin

Now we can  connect our ftp server with the username on port 21 using winscp or filezilla client.


Also we can type ftp://ServerIpAddress

It will ask for id and password, then we can access FTP server

Transfering file to FTP server from client PC.

curl -T File_Name ftp://ServerIPaddress –user kencorner:pwdkencorner


You May Also Enjoy Reading This …

Leave a Reply