Recently in the group, in the jar, including their own practice when all encountered the above problems, the search network did not find a more accurate answer; After a large number of related articles and information, the problem is taken out to analyze and solve, for the vast number of vsftp to learn new reference: (This problem and the firewall has nothing to do, Close iptables)
Parameters related to anonymous users in VSFTP:
1 Main configuration file:/etc/vsftpd/vsftpd.conf
--------------------------------------------------
[Root@station ~]# cat/etc/vsftpd/vsftpd.conf |grep-v ^#
Anonymous_enable=yes
Local_enable=yes
Write_enable=yes
local_umask=022//local user uploads the Umask value of the file.
Anon_upload_enable=yes//Allow anonymous uploads
Anon_mkdir_write_enable=yes//Anonymous users can write to the directory.
Dirmessage_enable=yes
Xferlog_enable=yes
Connect_from_port_20=yes
Xferlog_std_format=yes
Listen=yes
Pam_service_name=vsftpd
Userlist_enable=yes
Tcp_wrappers=yes
---------------------------------------------------
2 to see the relevant SELinux settings:
---------------------------------------------------
[Root@station ~]# getsebool-a |grep FTP
Allow_ftpd_anon_write--> on//anonymous user write permission, to open
Allow_ftpd_full_access--> on//anonymous user to upload file, to open
Allow_ftpd_use_cifs--> off
Allow_ftpd_use_nfs--> off
Allow_tftp_anon_write--> off
Ftp_home_dir--> on//local user home directory
Ftpd_disable_trans--> off//close SELinux impact on FTP service
Ftpd_is_daemon--> on
Httpd_enable_ftp_server--> off
Tftpd_disable_trans--> off
------------------------------------------------------
Just follow the settings above and restart the service. Most new people see the article is basically so configured, but we encountered problems arose.
Phenomenon: Anonymous users can access the FTP server (Linux clients, or Windows clients can) use Linux clients, you can upload files, you can build a directory; Use Windows client to pass a long pass file, create a directory cannot modify the name, can only use a new folder New Folder 1 ... Analysis: 1, it is certain that the authority problem. 2, close the SELinux test, the problem is still, the explanation and SELinux has nothing to do.
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/Ftp/