Basically, it's okay to use the combination.
/Etc/PAM. d/vsftpd # PAM Authentication configuration file
/Etc/vsftpd/ftpusers # blacklist user list
/Etc/vsftpd/user_list # user list (black and white adjustable)
/Etc/vsftpd. conf # main configuration file
Yum-y install vsftpd
Configure anonymous FTP
Chown FTP/var/FTP/pub/
Sed-I '/nonymous_enable =/A anon_umask = 022'/etc/vsftpd. conf # anonymous upload permission mask
Sed-I's/^ # anon_upload/'/etc/vsftpd. conf # anonymous upload allowed
Sed-I's/^ # anon_mkdir _/'/etc/vsftpd. conf # create a subdirectory during Anonymous Access
Sed-I '/^ anon_mkdir _/A anon_other_write_enable = Yes'/etc/vsftpd. conf # Other write permissions for anonymous access
Service vsftpd restart
Chkconfig vsftpd on
Cancel Anonymous
Sed-I '/^ anonymous_enable/S/yes/no/'/etc/vsftpd. conf
Implement User-verified vsftpd service
Sed-I's/^ # chroot_list_enable/'/etc/vsftpd. conf
Sed-I '/chroot_list_enable/A chroot_local_user = Yes'/etc/vsftpd. conf # ban system users
Limit the number of concurrent workers and transmission speed.
Sed-I '$ # The user limit'/etc/vsftpd. conf # insert comment row
Sed-I '$ A max_clients = 100'/etc/vsftpd. conf # maximum number of concurrent connections
Sed-I '$ A max_per_ip = 5'/etc/vsftpd. conf # maximum number of concurrent connections per IP Address
Sed-I '$ A anon_max_rate = 100'/etc/vsftpd. conf # The anonymous access limit is 100000 kb/s.
Sed-I '$ A local_max_rate = 100'/etc/vsftpd. conf # the System user access speed is 200000 kb/s.
Automatically deploy FTP service scripts