Vsftp Why anonymous users cannot download and how to solve them

Source: Internet
Author: User

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.