[Happy to be original] Solutions for VSFTP cast 553 could not create file and Failed to change directory

Source: Internet
Author: User
Tags chmod
Because of personal operation ECS need, need to build an FTP server, I use Centos7.2 operating system, yum install Vsftpdy, and successfully configured FTP upload download operation.

For some reason, uninstall the httpd that reinstalled Apache and modified the/etc/httpd/httpd.conf file,

Can be a normal connection, but when uploading files, always report 553 could not create file and Failed to change directory. Error message.


First: permissions are set on the Htdocs directory, if set to Chmod-r 777/path directory/htdocs




Solution.
First create a directory in the FTP directory, and then set the permissions to 777
$ sudo mkdir/var/ftp/write
$sudo Chmod-r 777/var/ftp/write
Then modify the vsftp configuration file/etc/vsftpd.conf file
Add at the end
local_root=/Path Directory/htdocs
Save, then kill the VSFTPD process, and then restart the VSFTPD server program.

Try, upload the file to the write directory, this time can be normal uploading files.

Service vsftpd Restart after reboot, successfully solve the problem.



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.