LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 643|回复: 3

我的proftp这样设置,anonymous还要求密码

[复制链接]
发表于 2005-9-27 23:16:34 | 显示全部楼层 |阅读模式
看看我的proftpd.conf
<Anonymous /var/www>
  User  nobody
  Group nogroup
  Umask 002
  UserAlias anonymous ftp

  MaxClients 50
  MaxClientsPerHost 2

  AuthAliasOnly on
<Limit LOGIN>
  AllowAll
</Limit>

<Directory />
  AllowStoreRestart on
<Limit WRITE>
  AllowAll
</Limit>
<Limit READ>
  AllowAll
</Limit>
</Directory>

</Anonymous>

flashget中提示的信息如下

Tue Sep 27 23:11:52 2005 正在连接 192.168.1.103 [IP=192.168.1.103:21]
Tue Sep 27 23:11:52 2005 Socket已连接 ,等待欢迎信息
Tue Sep 27 23:12:17 2005 220 ProFTPD 1.2.9 Server (Debian) [localhost.localdomain]
Tue Sep 27 23:12:17 2005 USER anonymous
Tue Sep 27 23:12:17 2005 331 Password required for anonymous.
Tue Sep 27 23:12:17 2005 PASS ********
Tue Sep 27 23:12:22 2005 530 Login incorrect.
Tue Sep 27 23:12:22 2005 有错误发生!
Tue Sep 27 23:12:22 2005 等待 5秒后重试
发表于 2005-9-28 08:12:37 | 显示全部楼层
检查日值
回复 支持 反对

使用道具 举报

发表于 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>
回复 支持 反对

使用道具 举报

发表于 2005-9-28 08:55:10 | 显示全部楼层
再有就是在anonymous块中加入
requirevalidshell off
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表