Linux聯結vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()錯誤,vsftpdrefusing

來源:互聯網
上載者:User

Linux聯結vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()錯誤,vsftpdrefusing

當我們限定了使用者不能跳出其主目錄之後,使用該使用者登入FTP時往往會遇到這個錯誤:

[html] view plaincopy
  1. 500 OOPS: vsftpd: refusing to run with writable root inside chroot ()  

這個問題發生在最新的這是由於下面的更新造成的:

[html] view plaincopy
  1. - Add stronger checks for the configuration error of running with a writeable root directory inside a chroot(). This may bite people who carelessly turned on chroot_local_user but such is life.  

從2.3.5之後,vsftpd增強了安全檢查,如果使用者被限定在了其主目錄下,則該使用者的主目錄不能再具有寫入權限了!如果檢查發現還有寫入權限,就會報該錯誤。

 要修複這個錯誤,

方案一:用命令chmod a-w /home/user去除使用者主目錄的寫入權限,注意把目錄替換成你自己的。

方案二:在vsftpd的設定檔中增加下列兩項中的一項 allow_writeable_chroot=YES

重啟vsftpd服務,使用者就只能在自己的主目錄活動了


原文參考學習大牛文章,感謝:http://blog.csdn.net/bluishglc/article/details/42399439

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.