Install VSFTPD on centos servers (FTP daemon)

Posted at October 23, 2015 at 8:26 am by InterServer Staff

On centos/RHEL based systems vsftpd is available. To install, become root – we will be using yum going forward. This process is meant to be done on a system with out a control panel (ie cpanel / directadmin) which already provide ftp.

install vsftpd
yum -y install vsftpd

edit /etc/vsftpd/vsftpd.conf
I prefer nano, other editors are vi

nano -w /etc/vsftpd/vsftpd.conf

Note: its possible the config file is /etc/vsftpd.conf on older systems – normally it is not

normal setup:
change anonymous_enable=YES to anonymous_enable=NO

to disable anonymous FTP

Confirm local_enable=YES is not commented out. If you see
#local_enable=YES
change to
local_enable=YES

Finally to prevent directory snooping add

chroot_local_user=YES

Save and start vsftpd with

/etc/init.d/vsftpd start

so vsftpd starts on boot run

chkconfig vsftpd on

The standard users in /etc/passwd are able to login to FTP, with a valid shell from /etc/shells

You can use adduser to add a new user

0.00 avg. rating (0% score) - 0 votes

You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply