|
|
我看了官方文档,老的参数不能用了。
目前是用TransferRate来限制。
看看我的配置文件,错在哪里。
ServerName "terry's FTP"
ServerType standalone
DefaultServer on
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
MaxInstances 10
# Set the user and group under which the server will run.
User terry
Group terry
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous /home/ftp>
User terry
Group terry
UserAlias anonymous terry
MaxClients 6
DisplayLogin welcome.msg
DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
TransferRate APPE,RETR,STOR 3 class terry
DefaultChdir /home/ftp
MaxClientsPerHost 2
</Anonymous>
DefaultChdir /home/ftp
DefaultRoot /home/ftp |
|