Solve the problem that vsftp cannot upload files and folders. vsftp uploads files

Source: Internet
Author: User

Solve the problem that vsftp cannot upload files and folders. vsftp uploads files

Recently, due to hadoop, the startup of linux desktop will bring a comparison card to the computer .. Therefore, the graphic interface is started and closed, and linux is used in command mode.

Use yum to build the ftp service .. Yum usage reference: http://blog.csdn.net/enson16855/article/details/9140623

In windows, FileZilla is used to connect to the linux ftp. What is depressing is the upload problem. After half an afternoon, it was not successful .. Let's talk about the following ideas:

1. Install vsftp

yum install vsftp
2. Start vsftp

service vsftpd start

Although it can be started correctly, it is basically based on the default configuration, anonymous login cannot upload files and folders, a bunch of online collection:


The above is:

vim /etc/vsftpd/vsftpd.conf 
The result content, marked in red, indicates the permission to upload files and folders anonymously. Restart the vsftpd service ..

Although the configuration is okay, you still cannot upload files and report permission issues ..

For more information, selinux needs to be disabled:

Modify vim/etc/selinux/config


If the selinux service is disabled in the preceding method, you need to restart the computer. Of course, there is also a temporary disabling method. You can search for the processing method online ~

After the OK command is completed, the file still cannot be uploaded .. Dizzy today...

For more information, set the ftp root folder permissions:

chmod 777 -R /var/ftp/pub

After the settings are complete, you can finally upload the file .... Of course, you need to upload it to the pub folder ..




An error is returned when vsftp uploads a Chinese folder.

Upload After packaging, or upload an English file. If the language configuration is incorrect, the language configuration options are generally available in option. Good luck.

On the linux vsftp server, external users cannot log on to the server to upload files. Is it true in linux? (If the problem is solved, How many points do you need)

#1. Confirm the following items:
Anonymous_enable = YES
Write_enable = YES
Local_enable = NO # block local users. enabling the local user option may conflict with the anonymous option.

#2. Disable selinux
# If no special settings are set, selinux will disable all network services from writing to the file system. Set selinux to passive mode first.
Setenforce 0
# If the problem persists, disable selinux:
# Modify/etc/selinux/config, set SELINUX = disabled, and restart the system

# The preceding two steps do not need to be performed at the same time. We recommend that you first perform Step 2. If the problem is solved, you do not have to perform step 1.

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.