|
|
发表于 2005-9-28 08:43:28
|
显示全部楼层
----Add "ftp" user and group:
#groupadd ftp
#useradd -s /sbin/nologin -d /var/ftp -g ftp ftp
----Set password for ftp user:
#passwd ftp
Notice: the password for "ftp" user should be: ftp
----Configure the proftpd.conf just like this:
ServerName ""
ServerType standalone
ServerAdmin " entium4xeon@etang.com"
DefaultServer on
Port 21
Umask 022
MaxInstances 30
ServerIdent on "Jimmy's ftp service is ready..."
DefaultRoot ~
AllowOverwrite on
#允许断点续传
AllowRetrieveRestart on
AllowStoreRestart on
MaxHostsPerUser 1 "对不起,每个帐户最多允许ip来源为1个"
MaxClientsPerUser 3 "对不起,每个客户端最多同时开3个线程"
MaxClientsPerHost 3 "对不起,每个客户端最多只能用3个帐户登录"
MaxClients 100 "连接已达上限(最多%M)"
#关闭日志
WtmpLog off
TimeoutIdle 240
DisplayLogin .welcome.msg
DisplayConnect .welcome.msg
DeferWelcome on
#运行服务的系统用户与用户组
User nobody
Group nobody
<Anonymous ~ftp>
User ftp
Group ftp
MaxClients 50
UserAlias anonymous ftp
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
<Directory /var/ftp>
<Limit WRITE>
DenyUser ftpuser01
</Limit>
</Directory> |
|