1. Configuration of vsftpd.conf files (vi/etc/vsftpd/vsftpd.conf)
# Allow anonymous users to log on to FTP
Anonymous_enable=yes
# Set the login directory for anonymous users (if required, add and modify them yourself)
Anon_root=/var/ftp/pub
# Open Upload permissions for anonymous users
Anon_upload_enable=yes
# Open Anonymous user permissions to create a directory
Anon_mkdir_write_enable=yes
# Open Anonymous user permissions to delete and rename (if required, add it yourself)
Anon_other_write_enable=yes
#匿名用户的掩码 (if necessary, add it yourself, meaning: If Umask is 022, then create a file with permission 666, the actual permissions of the file is 666-022=644)
anon_umask=022
2, the FTP directory permissions settings
By default, the FTP root directory is/var/ftp, for security, this directory by default does not allow the set to 777 permissions, otherwise FTP will not be accessible. But we want to upload files anonymously, need "other" user's write permission, the correct way:
In the/var/ftp set up a upload (the name of their own) folder, set the folder permissions to 777 (depending on the need to set their own), in upload this folder, anonymous users can upload files, create folders, delete files and so on.
Linux configuration vsftpd Anonymous users can add, modify, and delete files