Home > Article > Operation and Maintenance > 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!