免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1425 | 回复: 0
打印 上一主题 下一主题

[FTP] proftpd用户权限设置不起作用。附配置文件,请帮忙查错,谢谢。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-10-09 11:02 |只看该作者 |倒序浏览
# 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目录下只能上传,不允许删除,改名,下载,但实际情况是可以上传,删除,下载,等同于这个限制不起作用,不知哪里出现了语法错误。请指点。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP