- 论坛徽章:
- 0
|
为什么/etc/ftpaccess中的limit没有起作用?
应该不是这样的吧。。。
另外,SCO中ftphosts文件是无效的。。。SCO用的是wu-ftp 2.1,而网上教程的wu-ftp一般是高版本的,支持ftphosts文件配置
下面是SCO man中的example
---------------------------
# comments begin with a pound (#) sign and continue to the end of the
# line. Blank lines are ignored.
deny *.isc.com /archive/etc/msgs/msg.deny
deny 0.0.0.0 /archive/etc/msgs/msg.deny
# !nameserver is a special case, it triggers whenever the ftp server
# is not able to resolve the remote system name via the nameserver.
deny !nameserved /archive/etc/msgs/msg.no_nameserver
# define a "dead" class in case we want to "shut down" the
# ftp server for a while (this class, which has a 0-user
# limit, will print a nice message to all new connections
# telling them to go away and come back later)
class dead real,anonymous *
# define a class of local users (sites which are directly connected to
# our local network or which have a one-hop unloaded network connection.
class local real,anonymous 128.212.* *.lachman.com 0.0.0.0
# and everybody else...
class remote real,anonymous *
# define the user limits for various times
# for remote users, limit to 100 users during off-peak hours and
# 60 during peak hours
# (off-peak ::= Saturday, Sunday or 6PM to 6AM weekdays)
limit dead 0 Any /archive/etc/msgs/msg.dead
limit local 20 Any /archive/etc/msgs/msg.toomany
limit remote 100 SaSu|Any1800-0600 /archive/etc/msgs/msg.toomany
limit remote 60 Any /archive/etc/msgs/msg.toomany
# remind the users to read the README files
readme /README* login
readme README* cwd=*
# let them know about special features of the archives
message /etc/msgs/mirrors.msg cwd=/mirrors
message /etc/msgs/welcome.msg login
message .message cwd=*
# let everyone compress/uncompress files on the fly
compress yes local remote
# ... and tar things, too.
tar yes local remote
# Passworded anonymous-access accounts are in group ftpguest
guestgroup ftpguest
# Make local-use information accessible only to local hosts by putting
# them in UNIX group localuse.
autogroup localuse local
# Set up the private access group file
# -rw------- 1 root 1025 May 23 14:37 /etc/ftpgroup
private /etc/ftpgroup
# log all commands the users execute (USER, PASS,
# NLST, PORT, *EVERYTHING*)
# this can run to several (i.e. 5-10) megabytes/day for a
# heavily used archive site
log commands anonymous,real,guest
# log all file transfers to and from the archives
log transfers anonymous,real,guest inbound,outbound |
|