After configuring FTP on CentOS, I can log in, but I can’t create a new directory. The prompt is: 550 create directory operation failed. I tried method 1: set SELinux = disabled, and found it still can’t work. Finally, I confirmed that the folder write permission is not assigned
possibility 1:
After configuring vsftpd on CentOS , I carefully checked the configuration file. After connecting to the server, the error message “ 550 create directory operation failed ” was always displayed when creating and uploading files. I have configured vsftpd no less than five times. This problem has never occurred before, At first, I thought it was a problem of user permissions, so I simply configured Chmod – R 777 for the directory and local in vsftpd.conf_ Umask = 000 (in fact, it’s certainly not related to this configuration, and the psychological effect has been changed). As a result, the problem remains the same
Go to the official website of vsftpd to find out the answer. The original problem is SELinux. Speaking of SELinux, I hate SELinux to the bone. Normally, after installing the system, I directly delete it with Yum remove SELinux * – Y. Today, when I was about to leave work, I installed CentOS on the virtual machine VirtualBox, so I forgot to do this action
Solution:
1. How to disable SELinux
#VI/etc/SELinux/config
is modified to SELinux = disabled
If you don’t want to restart the system, enter: setenforce 0 in the terminal
Restart the vsftpd process and solve the problem
it’s better to delete this annoying SELinux directly
yum remove selinux* -y
The world is clean at last
possibility 2:
The directory of anonymous user (/ var/ftp/PUB) does not have write permission, so it needs to be set to have write permission
First go to/var/FTP
Then enter Chmod 777 pub in the terminal
Maybe that’s the problem that tripped you up
Similar Posts:
- How to Solve Nginx Error 13: Permission denied) while connecting to upstream
- Centos Service Cannot Start: Failed to start Login Service Failed to start Install ABRT coredump hook
- [Solved] PHP write file permission failure: file_put_contents: failed to open stream: Permission denied
- 20190603 – CentOS 7 prompt failed to load SELinux policy. Freezing causes stuck solution
- How to Solve MYSQL Error: Can’t create test file xxx lower-test
- [Solved] SELinux intercepts vsftpd for CentOS (without shutting down SELinux)
- Solutions to start failed after dhcpd installation
- Solutions to start failed after dhcpd installation
- MySQL Error: The server quit without updating PID file [How to Solve]
- [Solved] Linux No access to the system error: Failed to load SELinux policy. Freezing