|
通過對(duì)以上參數(shù)的理解,我們建議,將上面系統(tǒng)安裝時(shí)的那條默認(rèn)配置改為:ftp stream tcp nowait root /usr/sbin/tcpd wu.ftpd –a –I
3.提供自動(dòng)壓縮、解壓縮的功能
如果想讓FTP服務(wù)器有自動(dòng)壓縮、解壓縮的功能,必須先將一些壓縮、解壓縮的命令文件如tar、gzip、gunzip、compress、uncompress等命令文件拷貝到/home/ftpd/bin目錄下。
4. 關(guān)于/etc/ftpaccess的設(shè)置
這個(gè)配置文件是FTP服務(wù)器上最重要的配置文件,它直接關(guān)系到你的FTP服務(wù)器能否正常工作,還有許多權(quán)限上的設(shè)置。下面是一個(gè)典型的配置實(shí)例。
loginfails 3
class local real *
class remote anonymous guest *
limit remote 100 Any /etc/ftpd/toomany.msg
message /etc/ftpd/welcome.msg login
compress yes local remote
tar yes local remote
private yes
passwd-check rfc822 warn
log coMMands real
log transfer anonymous guest inbound outbound
log transfer real inbound
shutdown /etc/ftpd/shut.msg
delete no anonymous,guest
overwrite no anonymous,guest
rename no anonymous
chmod no anonymous,guest
umask no anonymous
upload /home/ftpd * no
upload /home/ftpd /bin no
upload /home/ftpd /etc no
upload /home/ftpd /pub yes real 0644 dirs
upload /home/ftpd /incoming yes real guest anonymous 0644 dirs
alias in /incoming
email guest@xxx.net
email guest@yyy.net
deny *.com.tw /etc/ftpd/deny.msg
|
|
【收藏】【打印】【進(jìn)入論壇】 |
|
|
|
|
|
|
|