FTP | vsftpd As A FTP Server In Ubuntu

How to make a ubuntu as a ftp server ?
The answer is vsftpd. It is light and simple.

# Install

$) sudo apt-get install vsftpd

$) sudo vi /etc/vsftpd.conf

listen=YES
local_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list

 

# User Permission Management
Add a user to have a permission to access a upper path of its home directory at /etc/vsftpd.chroot_list
 

# Add a user
A ftp user should have a root:root owner. And create a writable directory having a 777 permission.

$) sudo adduser [user_name]

$) sudo chown root:root /home/[user_name]

$) sudo mkdir /home/[user_name]/[writable_directory_name]

$) sudo chmod 777 /home/[user_name]/[writable_directory_name]

FTP | vsftpd As A FTP Server In Ubuntu