- 论坛徽章:
- 0
|
我想配置有的目录可以匿名访问,上传,有的目录必须通过用户名和密码才能登陆或上传
下面是我的配置文件,请高手指教,不胜感激
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
DefaultAddress 127.0.0.1
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
MaxInstances 30
# Set the user and group under which the server will run.
User root
Group root
DefaultRoot ~
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
<limit LOGIN>
Order deny,allow
AllowUser user1
</limit>
<Directory /bak/user1/>
<Limit WRITE DELE RNFR RNTO MKD XMKD RMD XRMD STOR SITE_CHMOD>
AllowUser user1
</Limit>
</Directory>
<Anonymous /var/A/B>
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message
<Limit WRITE>
AllowAll
</Limit>
</Anonymous> |
|