|
楼主 |
发表于 2003-5-4 16:19:53
|
显示全部楼层
不好意思问了一个由于概念理解错误的问题,我用linux才3天,受serv-u的影响现在才明白,用proftpd建的ftp登录用户都为系统里的用户,大家帮我看看这个.conf
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 "DBfuns private FTP [DBfuns.bingle.org.cn]"
ServerType standalone
DefaultServer on
# Some basic defaults
# Port 21 is the standard FTP port.
Port 21
TimeoutLogin 120
TimeoutIdle 180
TimeoutNoTransfer 180
TimeoutStalled 240
PassivePorts 49152 65534
MaxLoginAttempts 3
Umask 022
MaxInstances 30
# Set the user and group under which the server will run.
User nobody
Group nobody
RootLogin on
RequireValidShell off
DefaultRoot /home/ftp ftp
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
AllowRetrieveRestart on
AllowOverwrite on
AllowStoreRestart on
User dbfuns
Group ftp
MaxClients 10
MaxClientsPerHost 2
<Limit LOGIN>
Order allow,deny
# 202.112.14.0-202.112.14.255
# 211.83.105.*-211.83.111.*
Allow from 202.112.14. Allow from 211.83.105. Allow from 211.83.106. Allow from 211.83.107.
Allow from 211.83.108. Allow from 211.83.109. Allow from 211.83.110. Allow from 211.83.111.
Deny from all
</Limit>
DisplayLogin welcome.msg
DisplayFirstChdir . message
# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous /home/ftp>
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Some Limit for anonymous
# Limit the maximum number of anonymous and connections logins
MaxClients 20
MaxClientsPerHost 1 "Sorry ,Only allow one connect per IP"
TransferRate RETR 100:1000000
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
中间有一段关于ip限制的语句,我希望它用来限制dbfuns用户,但是却不知道他应该放在什么位置,如果放在上面的位置就成了全局设置,将限制到anonymous的登录,请大家看看. |
|