歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> 使用客戶端登陸ftp 500 OOPS: cannot change directory:/root解決

使用客戶端登陸ftp 500 OOPS: cannot change directory:/root解決

日期:2017/3/1 16:20:33   编辑:關於Linux
使用客戶端登陸ftp 500 OOPS: cannot change directory:/root解決 可以在windows上使用一ftp客戶端來嘗試進行登錄。這個時候一般都會報一個錯誤。 無效的用戶權限錯誤 刪除ftpuser 裡面的root和user_list 裡的root 最好關掉linux 的防火牆:chkconfig iptables off 然後再次登錄 500 OOPS: cannot change directory:/root 解決辦法: 1、 查看 SELinux 的狀態: sestatus -b | grep ftp 2、 在出現的結果中可以看到 ftp_home_dir off tftpd_disable_trans off 之類。我們現在只要把其中之一設置為on就可以啦。 3、 setsebool -P ftpd_disable_trans on 或者 setsebool -P ftp_home_dir on 4、 重啟vsftpd: service vsftpd restart 再次登錄,登錄成功了。
Copyright © Linux教程網 All Rights Reserved