1. Installing Vsftpyum-y Install FTP VSFTPD
2. Look at the path where the configuration file is located RPM-QC vsftpd
3. Backup VSFTPD file CP vsftpd.conf Vsftpd.conf.orgin
4. Create password plaintext file Vi/etc/vsftpd/vsftpuser.txtcaizheng
//odd line user, even line password 123
5. Create a password DB file based on clear text db_load-t-T Hash-f/etc/vsftpd/vftpuser.txt/etc/vsftpd/vftpuser.db
6. Create a Guest account for VFTPDUseradd-d/ftp/private-s/sbin/nologin Vftpuser
Note:/ftp/private may not have to create it yourself
7.Open the/etc/pam.d/vsftpd and comment out all the configuration lines for the
auth and account, adding the following:Auth required pam_userdb.so Db=/etc/vsftpd/vftpuseraccount required Pam_userdb.sodb=/etc/vsftpd/vftpuser
8,Open/etc/vsftpd/vsftpd.conf, change # Anonymous_enable=yes to Anonymous_enable=noAt the bottom, add the following: Virtual_user_local_privas=yesguest_enable=yesguest_username=vftpuserchroot_local_user=yesallow_ Writeable_chroot=yes
9. Set VSFTPD BootSystemctl Enable VSFTPD
.restarting the VSFTPD servicesystemctl Restart vsftpd
11. Configuring Firewalls and SELinuxfirewall-cmd--permanent--zone=public--add-service=ftp
12. View VSFTPD Service Statussystemctl Status vsftpd
13. Authorization for Shared Documents
chmod 777 /ftp/private
From for notes (Wiz)
1. Configuring the VSFTP Server