Home >Operation and Maintenance >CentOS >What to do if ftp cannot upload files under centos

What to do if ftp cannot upload files under centos

王林
王林Original
2020-03-26 15:24:043443browse

What to do if ftp cannot upload files under centos

Problem:

I installed a vsftp online through yum, but I can't upload files.

1. Check the Selinux status of ftp:

sestatus -b | grep ftp

(Recommended tutorial: centos tutorial)

2. You can see in the result:

 ftp_home_dir  off

3. Change the status to on:

setsebool -P  ftp_home_dir  on

4. Restart the vsftp service:

service vsftpd restart

Related tutorial recommendations: linux video tutorial

The above is the detailed content of What to do if ftp cannot upload files under centos. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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