Solve the problem that vsftp cannot upload files and folders

Source: Internet
Author: User

For the sake of Hadoop, consider that starting the Linux desktop will bring a comparison card to the computer. So just turn the graphical interface off and use Linux completely in command mode.

The FTP service is built using Yum. Use of yum reference: http://blog.csdn.net/enson16855/article/details/9140623

Windows uses FileZilla to connect to the Linux FTP, the more depressed is the upload problem, got half the afternoon time has not been successful, just finally finished. Here's the idea:

1, installation Vsftp

[Plain]View PlainCopy
    1. Yum Install Vsftp

2. Start Vsftp

[Plain]View PlainCopy
    1. Service VSFTPD Start


Although it can be started correctly, the basic is to follow the default configuration to go, anonymous login can not upload files and folders, online acquisition a bunch:

The above are:

[Plain]View PlainCopy
    1. Vim/etc/vsftpd/vsftpd.conf

The result content, the red place represents the permission to allow anonymous uploading of files and folders. Restart the VSFTPD service.

Although the configuration is not a problem, but still can not upload files, reported or the issue of permissions.

For a look, it turns out that SELinux needs to be closed:

Modify Vim/etc/selinux/config

The above way to disable the SELinux service, need to restart the computer, of course, there is a temporary disable, you can search the Internet to deal with the way ~

After OK, found still can't upload files. Dizzy dead today ...

For a while, also set the root folder permissions on the ftp:

[Plain]View PlainCopy
    1. chmod 777-r/var/ftp/pub


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

Solve the problem that vsftp cannot upload files and folders

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.