This blog simply recorded vsftp installation does not involve specific parameters explanation
Installation Environment
# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) # getenforce Disabled # systemctl is-active firewalld.service unknown
yum install vsftp
# yum list |grep vsftp vsftpd.x86_64 3.0.2-25.el7 @base vsftpd-sysvinit.x86_64 3.0.2-25.el7 base # yum -y install vsftpd
Modify the configuration file
# cd /etc/vsftpd/ # cat vsftpd.conf anonymous_enable=NO local_enable=YES write_enable=YES local_root=/data local_umask=022 dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_file=/var/log/xferlog xferlog_std_format=YES chroot_local_user=YES chroot_list_enable=YES chroot_list_file=/etc/vsftpd/chroot_list listen=YES pam_service_name=vsftpd userlist_file=/etc/vsftpd/user_list userlist_enable=YES userlist_deny=NO tcp_wrappers=YES allow_writeable_chroot=YES
Configuring User
# cd /data # echo "welcome to my ftp\!">>.message # cd /etc/vsftpd/ # vim user_list root work
Create a user and missing files
# useradd work # echo '123456'|passwd --stdin work # touch /etc/vsftpd/chroot_list
Start and test
# systemctl restart vsftpd.service