|
|
下面是配置文件
设的是匿名的ftp
能不能设置不同端口对不同目录的权限呢?怎么做?
谢谢了
ServerName "happy"
ServerType standalone
DeferWelcome off
ServerIdent off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
AllowOverwrite on
AllowForeignAddress on
TimeoutLogin 30
TimeoutNoTransfer 60
TimeoutStalled 60
TimeoutIdle 120
#DisplayLogin welcome.msg
DisplayConnect /var/ftp/welcome.msg
DisplayFirstChdir .message
ListOptions "-l"
DenyFilter \*.*/
# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd off
# Uncomment this if you would use TLS module:
#TLSEngine on
# Uncomment this if you would use quota module:
#Quotas on
# Uncomment this if you would use ratio module:
#Ratios on
# Port 21 is the standard FTP port.
Port 1991
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 300
MaxLoginAttempts 3
UseReverseDNS off
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
SystemLog NONE
<Directory /*>
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on
</Directory>
<Global>
WtmpLog off
IdentLookups off
DenyFilter \*.*/
TimesGMT off
DefaultTransferMode binary
</Global>
<VirtualHost 127.0.0.1>
Port 2120
DisplayConnect /var/ftp/welcome.msg
<Anonymous /var/ftp>
User ftp
Group nogroup
UserAlias anonymous ftp
RequireValidShell off
MaxClients 70
MaxClientsPerHost 1
TransferRate RETR 500
TimeoutSession 7200
DisplayFirstChdir .message
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
</Anonymous>
</VirtualHost>
<VirtualHost 127.0.0.1>
Port 1891
DisplayConnect /var/ftp/welcome.msg
<Anonymous /var/ftp>
User ftp
Group nogroup
UserAlias anonymous ftp
RequireValidShell off
MaxClients 40
MaxClientsPerHost 1
TransferRate RETR 200
TimeoutSession 7200
DisplayFirstChdir .message
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
</Anonymous>
</VirtualHost>
#VIP
<VirtualHost 127.0.0.1>
Port 1219
DisplayConnect /var/ftp/welcome.msg
<Anonymous /var/ftp>
User toei
Group users
UserAlias anonymous toei
RequireValidShell off
MaxClients 30
MaxClientsPerHost 1
# TransferRate RETR 100
DisplayFirstChdir .message
AllowOverwrite off
AllowStoreRestart on
DeleteAbortedStores on
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
<Directory Pub/*>
<Limit MKD XMKD STOR APPE SIZE>
AllowAll
</Limit>
</Directory>
</Anonymous>
</VirtualHost>
#list
<VirtualHost 127.0.0.1>
Port 21
DisplayConnect /var/ftp/welcome.msg
<Anonymous /var/ftp>
User ftp
Group nogroup
UserAlias anonymous ftp
RequireValidShell off
MaxClientsPerHost 1
DisplayFirstChdir .message
<Directory *>
<Limit READ WRITE>
DenyAll
</Limit>
</Directory>
</Anonymous>
</VirtualHost>
|
|