Install VSFTPD (very secure FTP daemon) on CentOS

Last modified: July 30, 2020
You are here:
Estimated reading time: 1 min

How to Install VSFTPD (very secure FTP daemon) on CentOS Server

FTP daemonOn centos/RHEL based systems vsftpd (very secure FTP daemon) is available. To install, become root – we will be using yum going forward. This process is meant to be done on a system without 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

 

You may also refer our following tutorial to know more about ftp accounts: Create and Manage FTP Accounts in cPanel

 

If you need any further assistance please contact our support department.

Was this article helpful?
Dislike 0
Views: 40