- 论坛徽章:
- 0
|
proftpd想限制某个用户的dele权限,但是在proftpd.conf中设置以后老是不成功。设置完已经重新启动了proftpd, 请大家赐教。
- # Ts 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 "PDI"
- #ServerType inetd
- ServerType standalone
- DefaultServer on
- ServerIdent on "ftp server without anonymous"
-
- # 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
-
- # 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
- MaxClients 10
- MaxClientsPerHost 5 "Only 5 client per host"
- MaxClientsPerUser 5 "Only 5 session per user"
- RequireValidShell off
- AllowStoreRestart on
- AllowOverWrite on
- UseReverseDNS off
- MultilineRFC2228 on
- IdentLookups off
- #HiddenStor on
- AllowOverWrite on
- #RateReadBPS 1048576
- PassivePorts 51001 51999
- #tcpReceiveWindow 8192
- DefaultTransferMode binary
- SystemLog /var/proftpd/proftpd.log
- DefaultRoot ~
- TimeoutIdle 600
-
- # Set the user and group under which the server will run.
- User nobody
- Group nobody
- #User cl
- #Group cl
- # Normally, we want files to be overwriteable.
- <Directory /home/users>
- AllowOverwrite off
- </Directory>
- <Directory /home/www/wwwroot/cms/down>
- <LIMIT XRMD RMD RNTO RNFR DELE>
- DenyUser guest5
- </Limit>
- </Directory>
复制代码
[ 本帖最后由 ramboo 于 2005-11-25 11:45 编辑 ] |
|