- 论坛徽章:
- 0
|
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "www.m-cool.cn FTP Server"
ServerType standalone
DefaultServer on
# Port 21 is the standard FTP port.
Port 2100
RootLogin off
AllowRetrieveRestart on
# "nobody" and "ftp" for normal operation and anon.
ServerName "www.m-cool.cn FTP Server"
ServerType standalone
DefaultServer on
# Port 21 is the standard FTP port.
Port 2100
ServerIdent off
RootLogin off
AllowRetrieveRestart on
AllowStoreRestart on
UseReverseDNS off
identLookups off
MaxLoginAttempts 5
#DirFakeUser On FTP #inorder to no show group and id info
DirFakeGroup On FTP
TimeoutLogin 30
TimeoutIdle 120
TimeoutNoTransfer 300
MaxClientsPerHost 5
#umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# 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 30
# Set the user and group under which the server will run.
User nobody
Group nobody
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~ ftpusers
<Directory />;
AllowOverwrite on
</Directory>;
AllowForeignAddress on
PassivePorts 49152 65534
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>;
DenyAll
<Directory />;
AllowOverwrite on
</Directory>;
<Directory /data/system/ftp/test>;
<Limit RMD RMD RNFR DELE RETR>;
DenyUser tester
</Limit>;
</Directory>;
<Directory /data/system/ftp/ftp>;
<Limit WRITE>;
DenyUser movie
</Limit>;
</Directory>;
AllowForeignAddress on
PassivePorts 49152 65534
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>;
DenyAll
</Limit>;
我想起的作用:tester用户在/data/system/ftp/test目录下只能上传,不允许删除,改名,下载,但实际情况是可以上传,删除,下载,等同于这个限制不起作用,不知哪里出现了语法错误。请指点。 |
|