vsftpd 550 Create directory operation failed 錯誤

在RHEL5系統安裝好後,使用系統默認安裝的vsftp,用戶連接後創建文件時提示“550 Create directory operation failed”錯誤,在google上查了一會,找到了以下三步解決方案:)

解決方案 1:

1、# sestatus -b | grep ftp

顯示如下信息:

allow_ftpd_anon_write                  off
allow_ftpd_full_access                 off
allow_ftpd_use_cifs                    off
allow_ftpd_use_nfs                     off
allow_tftp_anon_write                  off
ftp_home_dir                           off
ftpd_connect_db                        off
ftpd_disable_trans                     off
ftpd_is_daemon                         on
httpd_enable_ftp_server                off
tftpd_disable_trans                    off

 

只要將ftpd_disable_trans                     off修改爲ftpd_disable_trans                     on後,vsftp就OK了,具體的修改命令如下:

2、#setsebool -P ftpd_disable_trans on
修改後重啓vsftp

3、#/etc/init.d/vsftpd restart

 

再次試試vsftp,一切OK;


解決方案 2:

ftpuser登錄ftp後上傳文件或新建目錄,如果出現“550 create directory operation failed

SELinux(Security-Enhanced Linux----是美國國家安全局對於強制訪問控制的實現, 是Linux 上最傑出的新安全子系統.)安裝機制搞的鬼.只要disable SELinux就可以了.

PS: 關閉SELinux方法
[root@CenOS ~]# vim /etc/selinux/config
將 SELINUX=XXX -->XXX 代表級別
改爲
SELINUX=disabled
重啓就OK了!



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章