Install Configure VSFTPD on CentOS 6

First please make sure to update CentOS 6 systems with the current files with command yum -y update

#yum -y update
Loaded plugins: fastestmirror
Setting up Update Process
base | 3.7 kB 00:00
base/primary_db | 4.7 MB 00:04

Then move forward to install VSFTPD with any required packages with yum -y install vsftpd

#yum -y install vsftpd
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
* base: mirror.ventraip.net.au
* extras: mirror.ventraip.net.au
* updates: mirror.ventraip.net.au
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.x86_64 0:2.2.2-21.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved

After VSFTPD installation has been complete, now edit and configure vsftpd.conf file

#vi /etc/vsftpd/vsftpd.conf
# Allow anonymous FTP (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_local_user=YES
#chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list

Exit and save the file with command :wq
Then restart the vsftpd service with command service vsftpd restart

#service vsftpd restart

Set the vsftpd service to start at boot with command chkconfig vsftpd on

#chkconfig vsftpd on

Add VSFTPD user

# useradd user
# passwd user
Changing password for user user.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

You will need to create a vsftp.chroot_list file and enter users who do not use chroot. Ever user chroots by default. Therefore, create a chroot_list file, even if the file is going to remain empty:

#touch /etc/vsftpd/vsftpd.chroot_list

Once the vsftpd.chroot_list file has been created, restart vsftpd again

#service vsftpd restart

Test VSFTPD user log in to FTP Server with ftp client application, this example using FileZilla