If not downloaded, use the yum command to download
Then modify the configuration file
#/etc/vsftpd/vsftpd.conf
Add the following information
#设定不允许匿名访问anonymous_enable =no# to set local user access. Note: If you are using a virtual hosting user, all virtual users will not be able to access the local_enable=yes# when the item is set to No, users cannot leave the home directory chroot_list_enable=yes# set the ASCII mode upload and download feature _upload_enable=yesascii_download_enable=yes#pam Authentication file name. Pam will authenticate according to/ETC/PAM.D/VSFTPD pam_service_name=vsftpd# set enable virtual user function guest_enable=yes# The host user of the specified virtual user, There is already a built-in FTP user in CentOS guest_username=ftp# set the path of the CentOS FTP service file for the virtual user's personal vsftp. The CentOS FTP service file (config file name = Virtual user name) that holds the virtual user's personality user_config_dir=/etc/vsftpd/vuser_conf
Then generate the virtual user authentication file
# db_load-t-T hash-f/etc/vsftpd/vuser_passwd.txt/etc/vsftpd/vuser_passwd.db
First see if the Linux version is 32-bit or 64-bit.
Then edit the authentication file
Auth required/lib64/security/pam_userdb.so Db=/etc/vsftpd/vuser_passwdaccount REQUIRED/LIB64/SECURITY/PAM_ Userdb.so db=/etc/vsftpd/vuser_passwd
Then create a virtual user personalized service file
# mkdir/etc/vsftpd/vuser_conf/
# Touch/etc/vsftpd/vuser_conf/test
Then
# Vi/etc/vsftpd/vuser_conf/test Add the following information
Then create FTP root permissions
# mkdir-p/ftp/www
# Chmod-r 777/ftp
# Chmod-r 777/ftp/www
Then restart Iptables and VSFTPD.
FTP Service built under Linux