LinuxSir.cn,穿越时空的Linuxsir!

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

最最基本的proftpd.conf,proftpd却无法登录问题,在线等待

[复制链接]
发表于 2005-4-6 21:55:56 | 显示全部楼层 |阅读模式
proftpd装的是proftpd-1.2.8-2.i386.rpm,rh9
用的配置文件是proftpd自带的最最基本的anonymous配置,现贴出如下
# 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                      "roFTPD Default Installation"
ServerType                      standalone
DefaultServer                   on

# 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

# Set the user and group under which the server will run.
User                            nobody
Group                           nobody

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files to be overwriteable.
AllowOverwrite          on

# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
  DenyAll
</Limit>

# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
  User                          ftp
  Group                         ftp

  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                     anonymous ftp

  # Limit the maximum number of anonymous logins
  MaxClients                    10

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin                  welcome.msg
  DisplayFirstChdir             .message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    DenyAll
  </Limit>
</Anonymous>



1.已经把nogroup改为nobody了,而且用户里有nobody这个用户
2.确定有ftp这个用户,在passwd里它的家目录是/var/ftp,确定有这个目录,而且也属于ftp这个用户


但是开启proftpd后,用lftp连自己,user anonymous,再ls,出现
登录失败: 530 Login incorrect.
user ftp,再ls,也是
登录失败: 530 Login incorrect.

哪位碰到过类似的请帮帮我。
发表于 2005-4-7 12:54:42 | 显示全部楼层
<Anonymous ~ftp>
User ftp
Group ftp

把 User 改成 nobody
把 Group 改成 nogroup

好象有些版本的 proftpd 的匿名用户必须映射成 nobody 用户
另外注意 /var/ftp 目录的权限,可以先设置成777用于测试并找到原因
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-7 19:11:38 | 显示全部楼层
Post by pandonny
<Anonymous ~ftp>
User ftp
Group ftp

把 User 改成 nobody
把 Group 改成 nogroup

好象有些版本的 proftpd 的匿名用户必须映射成 nobody 用户
另外注意 /var/ftp 目录的权限,可以先设置成777用于测试并找到原因

非常感谢你的耐心答复,也照你说的改了,可是结果还是一样的
530. no login,我还试着把UserAlias                     anonymous ftp,改成UserAlias                     anonymous nobody,也不管用,哪个真的救命啊,要崩溃了

ServerName                      "roFTPD Default Installation"
ServerType                      standalone
DefaultServer                   on

# 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

# Set the user and group under which the server will run.
User                            nobody
Group                           nobody

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files to be overwriteable.
AllowOverwrite          on

# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
  DenyAll
</Limit>

# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
  User                          nobody
  Group                         nobody

  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                     anonymous ftp

  # Limit the maximum number of anonymous logins
  MaxClients                    10

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin                  welcome.msg
  DisplayFirstChdir             .message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    DenyAll
  </Limit>
</Anonymous>
回复 支持 反对

使用道具 举报

发表于 2005-4-8 11:12:25 | 显示全部楼层
兄弟,你先编辑proftpd.conf,修改

SyslogLevel     debug
SystemLog       /var/log/proftpd.system.log

然后重新启动proftpd服务
重新测试登陆ftp,然后打开/var/log/proftpd.system.log下看一下错误日志
里面应该能够找到原因,或者你可以把文件内容贴出来

另外:如果原先已经存在/var/log/proftpd.system.log,先清理下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-9 08:18:03 | 显示全部楼层
Post by pandonny
兄弟,你先编辑proftpd.conf,修改

SyslogLevel     debug
SystemLog       /var/log/proftpd.system.log

然后重新启动proftpd服务
重新测试登陆ftp,然后打开/var/log/proftpd.system.log下看一下错误日志
里面应该能够找到原因,或者你可以把文件内容贴出来

另外:如果原先已经存在/var/log/proftpd.system.log,先清理下


老兄真是一针见血把我们这些菜鸟的问题提出来了
好人啦,
哎,菜鸟努力学习中
回复 支持 反对

使用道具 举报

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

本版积分规则

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