LinuxSir.cn,穿越时空的Linuxsir!

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

proftp 1.2.8rc2 问题求助?

[复制链接]
发表于 2003-6-13 23:55:40 | 显示全部楼层 |阅读模式
我 使用的是proftp 1.2.8rc2
我的配置文件如下
  1. # This is a basic ProFTPD configuration file (rename it to
  2. # 'proftpd.conf' for actual use.  It establishes a single server
  3. # and a single anonymous login.  It assumes that you have a user/group
  4. # "nobody" and "ftp" for normal operation and anon.

  5. ServerName                        "ProFTPD Default Installation"
  6. ServerType                        standalone
  7. DefaultServer                        on
  8. #Port 21 is the standard FTP port.
  9. Port                                21

  10. # Umask 022 is a good standard umask to prevent new dirs and files
  11. # from being group and world writable.
  12. Umask                                022

  13. # To prevent DoS attacks, set the maximum number of child processes
  14. # to 30.  If you need to allow more than 30 concurrent connections
  15. # at once, simply increase this value.  Note that this ONLY works
  16. # in standalone mode, in inetd mode you should use an inetd server
  17. # that allows you to limit maximum number of processes per service
  18. # (such as xinetd).
  19. MaxInstances                        30

  20. # Set the user and group under which the server will run.
  21. User                                nobody
  22. Group                                nobody
  23. RequireValidShell               off
  24. AllowRetrieveRestart            on

  25. UseReverseDNS                   off
  26. # Normally, we want files to be overwriteable.
  27. <Directory />
  28.   AllowOverwrite                on
  29. </Directory>

  30. # A basic anonymous configuration, no upload directories.
  31. <Anonymous /home/ftp>
  32.   User                                ftp       
  33.   Group                                ftp

  34. # We want clients to be able to login with "anonymous" as well as "ftp"
  35. UserAlias                        anonymous ftp
  36. RequireValidShell               off

  37. # Limit the maximum number of anonymous logins
  38. MaxClients                        10
  39. # We want 'welcome.msg' displayed at login, and '.message' displayed
  40. # in each newly chdired directory.
  41. DisplayLogin                        welcome.msg
  42.   DisplayFirstChdir                .message

  43.   # Limit WRITE everywhere in the anonymous chroot
  44.   <Limit WRITE>
  45.     DenyAll
  46.   </Limit>
  47.    
  48. </Anonymous>

复制代码

当我用anonymous登录时候显示Login failed
当我运行了passive命令后
显示ftp:bind:address already in use
会不会跟我使用两个网卡有关呢?
 楼主| 发表于 2003-6-14 00:33:40 | 显示全部楼层

终于知道答案了

刚才参看 /var/log/secure文件
看到如下几行
  1. Jun 13 23:50:57 eryk proftpd[2875]: eryk (127.0.0.1[127.0.0.1]) - USER ftp (Login failed): User in /etc/ftpusers
  2. Jun 13 23:57:30 eryk proftpd[2880]: eryk (127.0.0.1[127.0.0.1]) - USER ftp (Login failed): User in /etc/ftpusers
  3. Jun 14 00:02:43 eryk proftpd[2929]: eryk (127.0.0.1[127.0.0.1]) - USER ftp (Login failed): User in /etc/ftpusers
复制代码

于是猜想是不是anonymous映射的ftp用户在/etc/ftpusers文件中存在呢,结果删除ftp后一切正常。
后来在proftpd 1.2.8-rc2的faq里面搜索ftpusers
找到如下几行,相信是什么意思大家应该看的懂
  1. UseFtpUsers
  2. Name
  3. UseFtpUsers -- Block based on /etc/ftpusers
  4. Synopsis

  5. UseFtpUsers [ UseFtpUsers on|off]

  6. Default

  7.     UseFtpUsers on

  8. Context

  9.     server config, <Anonymous>, <VirtualHost>, <Global>

  10. Module

  11.     mod_auth

  12. Compatibility

  13.     0.99.0 and later

  14. Description

  15. Legacy FTP servers generally check a special authorization file (typically /etc/ftpusers) when a client attempts to authenticate. If the user's name is found in this file, FTP access is denied. For compatibility sake, proftpd defaults to checking this file during authentication. This behavior can be suppressed using the UseFtpUsers configuration directive.
复制代码

哎~~~~~~~~~~希望给后来人提个醒。
发表于 2003-6-14 00:35:16 | 显示全部楼层

怎么会把ftp这个用户莫名奇妙的加到/etc/ftpusers里面去呢
 楼主| 发表于 2003-6-14 00:41:28 | 显示全部楼层
我也不是很清楚
可能装完系统就是这样的了
关于useradd groupadd这些我都没有修改过
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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