vsftp不能上傳下載問題解決

來源:互聯網
上載者:User

vsftp不能上傳下載問題解決 我的系統:64位RHEL61、問題:vsftp登入報錯”500 OOPS: cannot change directory:/home/*******”     解決:       A、首先檢查許可權問題;       B、ftp伺服器串連失敗,錯誤提示:            500 OOPS: cannot change directory:/home/******* 500 OOPS: child died            當你看到以上提示時,試著在輸入以下命令解決:            (1) [root@ www.codesky.net vsftpd]#setsebool -P ftpd_disable_trans 1                  [root@ www.codesky.net vsftpd]#service vsftpd restart             或使用以下解決:            (2) [root@ www.codesky.net ~]#/usr/sbin/setsebool -P ftp_home_dir 1 ################################################################################### 2、如果使用setsebool -P ftpd_disable_trans 1 //加-P表示永久性 提示錯誤:      [root@ www.codesky.net vsftpd]# setsebool -P ftpd_disable_trans 1      libsemanage.dbase_llist_set: record not found in the database (No such file or directory).                           libsemanage.dbase_llist_set: could not set record value (No such file or directory).      Could not change boolean ftpd_disable_trans Could not change policy booleans      解決方案: 可能直接使用下面這個一條就可以解決了:      [root@ www.codesky.net ~]# /usr/sbin/setsebool -P ftp_home_dir 1      再試試,如果還是不行的話再使用下面完全方式:      [root@ www.codesky.net vsftpd]# setsebool allow_ftpd_full_access 1      [root@ www.codesky.net vsftpd]# setsebool allow_ftpd_use_cifs 1      [root@ www.codesky.net vsftpd]# setsebool allow_ftpd_use_nfs 1      [root@ www.codesky.net vsftpd]# setsebool -P ftp_home_dir 1      [root@ www.codesky.net vsftpd]# setsebool httpd_enable_ftp_server 1      [root@ www.codesky.net vsftpd]# setsebool tftp_anon_write 1      [root@ www.codesky.net vsftpd]# service vsftpd restart      關閉 vsftpd:[確定] 為 vsftpd 啟動 vsftpd:[確定]      [root@ www.codesky.net vsftpd]# getsebool -a | grep ftp       allow_ftpd_anon_write --> off       allow_ftpd_full_access --> on       allow_ftpd_use_cifs --> on       allow_ftpd_use_nfs --> on       ftp_home_dir --> on       ftpd_connect_db --> off       httpd_enable_ftp_server --> on       sftpd_anon_write --> off       sftpd_enable_homedirs --> off       sftpd_full_access --> off       sftpd_write_ssh_home --> off       tftp_anon_write --> on       重啟vsftpd,即可解決問題。 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.