Build FTP and test for Local Users
The configuration file of vsfdpd. conf is in/etc/vsfdpd. conf.
1. Use Yum to install vsftpd package on the server client and install Yum to install FTP
2. Open the vsftpd. conf configuration file and modify the two items.
The 12th rows of anonymous users are changed to "no" to be disabled, and the 96th rows are used to enable the local user's home directory lock. In this way, OK,
Because it is an FTP local user service, you need to first create a common user and password to log on to the server using the client ftp to enter the account and password
If yes, it indicates that the building is successful.
If the connection fails, ① check whether the firewall is disabled; ② enter setsebool-P samba_enable_home_dirs 1 on the server to restart the vsftpd service.
③ Open the/etc/SELinux/config configuration file. The security system has disabled SELinux = disabled and restarted. OK
Anonymous Users build FTP and Test
The configuration file of vsfdpd. conf is in/etc/vsfdpd. conf.
1. Use Yum to install the vsftpd package on the server,
2. After yum is installed, there is a shared directory/var/FTP/pub. If it is not created by yourself
By default, FTP programs can be used. You need to change the/Pub owner to an FTP program user,
3. Open the vsftpd. conf configuration file and modify four items.
In row 3, enable the anonymous user upload permission anon_upload_enable = yes.Manually add an anonymous user's permission maskAnon_umask = 022
Open anon_mkdir_write_enable = yes in row 32nd and manually add other anonymous user permissions anon_other_write_ecable = Yes
4. Start the vsftdpd Service
5. Install Yum on the client to install FTP
5. log on directly from the FTP server IP address. If the anonymous user name is blank, press enter to view the pub shared directory.
6. The HELP command is different from the liunx command. For example, get indicates downloading put indicates uploading)
Virtual user FTP Construction
FTP service setup demonstration