What to do if ftp cannot upload files under centos

王林
Release: 2020-03-26 15:24:04
Original
3391 people have browsed it

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
Copy after login

(Recommended tutorial: centos tutorial)

2. You can see in the result:

 ftp_home_dir  off
Copy after login

3. Change the status to on:

setsebool -P  ftp_home_dir  on
Copy after login

4. Restart the vsftp service:

service vsftpd restart
Copy after login

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!

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