FTP客戶端連接vsftp是錯誤:500 OOPS: could not read chroot() list file:/etc/vsftpd/chroot_轉(zhuǎn)自:http:/ FTP客戶端連接vsftp是錯誤:500 OOPS: could not read chroot() list file:/etc/vsftpd/chroot_ 轉(zhuǎn)自:http://blog.sina.com.cn/s/blog_8a11b6480100w88j.html Vsftp 架設(shè)第二天 允許anonymous登錄的時候出現(xiàn)的錯誤。 提定anonymous登錄到指定的目錄 /etc/vsftpd.conf listen=YES max_clients=200 max_per_ip=4 anonymous_enable=YES no_anon_password=YES anon_root=/home/ftp/ local_enable=NO write_enable=YES connect_from_port_20=YES xferlog_enable=YES #local_root=/home/ftp/ftp 出現(xiàn)錯誤 500 OOPS:vsftpd:refusing to run with writable anonymous root 是因為 /home/ftp 目錄的權(quán)限問題。 drwxrwxrwx 3 root root 4096 2011-08-25 20:15 ftp/ vsFTPd出于安全考慮,是不準(zhǔn)讓ftp用戶的家目錄的權(quán)限是完全沒有限制的。 把/home/ftp 目錄的權(quán)限改成755就OK了! 用本地用戶登錄的話,如果設(shè)置指定的登錄目錄,他就會登錄到自己的家目錄。 而且權(quán)限很大。 1,指定登錄到的根目錄 local_root=/home/ftp (那他就登錄到這個目錄,權(quán)限就跟就是這個目錄的權(quán)限) 可以變換登錄的根目錄。 chroot_local_user=YES chroot_list_enable=YES chroot_list_file=/etc/vsftpd.chroot_list 出現(xiàn)這個錯誤: 500 OOPS: could not read chroot() list file:/etc/vsftpd.chroot_list Login failed. 解決:是因為沒有這個文件。在/etc/下面新建一個chroot.chroot_list 通過與chroot_local_user=YES/NO搭配能實現(xiàn)以下幾種效果: 1、當(dāng)chroot_list_enable=YES,chroot_local_user=YES時,在/etc/vsftpd.chroot_list文件中列出的用戶,可以切換到其他目錄;未在文件中列出的用戶,不能切換到其他目錄。___已實驗證明。
相關(guān)新聞
|
|