wolfg 回復于:2005-08-02 11:38:59 |
什么ftp服務器軟件?操作系統? |
Hilinux 回復于:2005-08-02 11:40:37 |
FC3 vsftp |
wolfg 回復于:2005-08-02 13:09:20 |
[quote:3c942becfe="Hilinux"]FC3 vsftp[/quote:3c942becfe]看到vsftpd,原本想回復換成proftpd吧。不過,想到了tcp_wrappers。google了以后,發現結合tcp_wrappers,vsftpd也可以做到類似wu-ftpd的分類(Class)設置。
我找到的參考是這個: http://www.muug.mb.ca/tutorials/vsftpd-class.html 針對你的情況,可以試試這樣的設置: 1. 確定vsftpd支持tcp_wrappers(FC3自帶的應該支持) ldd /usr/sbin/vsftpd 看結果中有沒有libwrap.so.0,有則支持。 2. 在 vsftpd.conf中啟用tcp_wrappers tcp_wrappers=YES 3. 修改hosts.allow文件 加入: [quote:3c942becfe]vsftpd: 10.0.1.* : setenv VSFTPD_LOAD_CONF /etc/vsftpd/local.class vsftpd: ALL : setenv VSFTPD_LOAD_CONF /etc/vsftpd/other.class[/quote:3c942becfe] 4. 分別編輯/etc/vsftpd/local.class和/etc/vsftpd/other.class這兩個文件 /etc/vsftpd/local.class [quote:3c942becfe]write_enable=YES anon_mkdir_write_enable=YES[/quote:3c942becfe] /etc/vsftpd/other.class [quote:3c942becfe]write_enable=NO anon_mkdir_write_enable=NO[/quote:3c942becfe] |
Hilinux 回復于:2005-08-02 21:30:30 |
呵呵,多謝斑竹?;厝ズ煤醚芯?! |
Hilinux 回復于:2005-08-08 11:26:37 |
行了,不過得在local.class加上一行
anon_upload_enable=YES |