其中vsftpd總是無法順利完成
1,重新安裝vsftpd的指令
sudo apt-get remove --purge vsftpd
sudo apt-get install vsftpd
2,重新啟動
sudo /etc/init.d/vsftpd start
3,設定檔在 /etc/vsftpd.conf
其中比較要注意的是幾個設定值
例如:(拿掉#)
- 將使用者限定在家目錄中 chroot_local_user = YES
- 可否寫入write_enable=YES
- 任何入讀取匿名ftp資料夾 anonymous_enable=YES
4,匿名ftp預設登入目錄為 /srv/ftp
*******參考文件***********************************
500 OOPS: vsftpd: refusing to run with writable root inside chroot()
This is one of the most annoying and frustrating problems I have run into lately. This supposed security fix makes vsftp simply unusable after upgrading to Ubuntu 12.04 from 10.04. No amount of cajoling or messing with options will get it working again.
The fix is pretty easy though, just copy/paste these lines into a terminal. It will update your /etc/vsftpd.conf that stopped working after you upgraded.
This has been tested and works on Ubuntu 12.04
這是新版的 vsftpd 又增加了安全性的設定了,它不允許你的根目錄的權限設定是可以寫入的
The fix is pretty easy though, just copy/paste these lines into a terminal. It will update your /etc/vsftpd.conf that stopped working after you upgraded.
This has been tested and works on Ubuntu 12.04
wget http://http.us.debian.org/debian/pool/main/v/vsftpd/vsftpd_3.0.2-2_amd64.deb
dpkg -i vsftpd_3.0.2-2_amd64.deb
echo "allow_writeable_chroot=YES" >> /etc/vsftpd.conf
service vsftpd reload
*******參考文件***********************************這是新版的 vsftpd 又增加了安全性的設定了,它不允許你的根目錄的權限設定是可以寫入的
沒有留言:
張貼留言