ProFtpd快速指南(六)
来源:云南设计港 时间:2007-09-27 13:42:00
笔者的proftpd.conf配置文件内容为:
#ThisisabasicProFTPDconfigurationfile(renameitto
#proftpd.confforactualuse.Itestablishesasingleserver
#andasingleanonymouslogin.Itassumesthatyouhaveauser/group
#"nobody"and"ftp"fornormaloperationandanon.
ServerName&!quot;test.com.cnFTPServer"
ServerTypestandalone
DefaultServeron
#Port21isthestandardFTPport.
Port21
#Umask022isagoodstandardumasktopreventnewdirsandfiles
#frombeinggroupandworldwritable.
Umask022
#TopreventDoSattacks,setthemaximumnumberofchildprocesses
#to30.Ifyouneedtoallowmorethan30concurrentconnections
#atonce,simplyincreasethisvalue.NotethatthisONLYworks
#instandalonemode,ininetdmodeyoushoulduseaninetdserver
#thatallowsyouto&!nbsp;limitmaximumnumberofprocessesper service
#(suchasxinetd)
MaxInstances30
RequireValidShelloff
ServerIdentoff
#Settheuserandgroupthattheservernormallyrunsat.
Usernobody
Groupnobody
#Normally,wewantfilestobeoverwriteable.
<Directory/*>
AllowOverwriteon
</Directory>
#Abasicanonymousconfiguration,nouploaddirectories.
<Anonymous/home/ftp>
Userftp
Groupftp
#Wewantclientstobeabletologinwith"anonymous"aswellas"ftp"
UserAliasanonymousftp