Home > Operation and Maintenance > CentOS > How to solve the problem that CentOS ftp cannot upload files

How to solve the problem that CentOS ftp cannot upload files

angryTom
Release: 2020-03-20 12:27:42
Original
5788 people have browsed it

How to solve the problem that CentOS ftp cannot upload files

How to solve the problem that CentOS ftp cannot upload files

Detection steps for ftp files that cannot be uploaded:

1. Open the vsftp configuration file (/etc/vsftpd/vsftpd.conf) and check the write_enable status to ensure that it has writable permissions:

How to solve the problem that CentOS ftp cannot upload files

2. Check whether the ftp user has the directory Read and write permissions are also found to be feasible in 775 status (www group).

How to solve the problem that CentOS ftp cannot upload files

Recommended learning: CentOS usage tutorial

3. If the above settings are correct, you can try the following solution:

Solution:

①. Check the Selinux status of ftp: sestatus -b | grep ftp

②. You can see in the result: ftp_home_dir off

③, change the status to on: setsebool -P ftp_home_dir on

④, restart vsftpd service: service vsftpd restart

PHP Chinese website, a lot of MySQL videos Tutorial, welcome to learn!

The above is the detailed content of How to solve the problem that CentOS ftp cannot upload files. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template