歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> Vsftpd權限等配置正確,報500,550解決方法

Vsftpd權限等配置正確,報500,550解決方法

日期:2017/3/1 17:02:24   编辑:關於Linux
Vsftpd權限等配置正確,報500,550解決方法 本人在配置完VSFTPD,使用的過程中遇到了500 cannot create file 的報錯 查了很多解答,都說是權限的問題 www.2cto.com 我的FTP用戶為 ftpuser 我為他建立了一個根目錄 /home/ftp 並給他設置為所有者,並賦予755的權限 chown -R ftpuser /home/ftp chmod 755 -R /home/ftp 所以我肯定不是權限的問題 後來我用ROOT用戶登錄FTP 又發現有550的報錯,後來查550 發現可能是selinux啟用的原因,關掉後就可以解決問題。具體如下: www.2cto.com vsftpd正常設置 但登陸後不能創建,也不能刪除提示550錯誤 解決辦法可以關掉selinux=disable [root@host]# vi /etc/selinux/config --------------------------------------------------------------------- # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=disabled #把這裡改成disable # SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted ------------------------------------------------------------------------- 如果在想不重啟系統的情況下關掉SELINUX,可以輸入命令: setenforce 0
Copyright © Linux教程網 All Rights Reserved