HostOnNet Blog

Install vsftpd in Ubuntu

Looking for Linux Server Admin or WordPress Expert? We can help.

To install vsftpd in ubuntu, run

apt-get install vsftpd

To configure, edit /etc/vsftpd.conf

vi /etc/vsftpd.conf

Enable Linux Users to Login

Set value for following settings as below

local_enable=YES
write_enable=YES 

Disable Annonymouse Login

Set

anonymous_enable=NO

chroot user

chroot_local_user=YES

Allow user root to login

Edit /etc/ftpusers and remove root.

root@ip-172-31-31-66:~# cat /etc/ftpusers
# /etc/ftpusers: list of users disallowed FTP access. See ftpusers(5).

#root
daemon
bin
sys
sync
games
man
lp
mail
news
uucp
nobody
root@ip-172-31-31-66:~# 

Start/Stop vsftpd

To start

service vsftpd start

To stop

service vsftpd stop

To restart

service vsftpd restart

Posted in Linux

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.