Chinaunix首页 | 论坛 | 博客
  • 博客访问: 707729
  • 博文数量: 759
  • 博客积分: 7000
  • 博客等级: 少将
  • 技术积分: 4775
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-22 15:16
文章分类

全部博文(759)

文章存档

2008年(759)

我的朋友

分类:

2008-09-25 15:56:01

gentoo 2007 ,proftpd 1.3.1rc2 匿名用户登录不了,建立的ftp用户可以登录

proftpd.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 anonymous access.
ServerName                      "ProFTPD Default Installation"
ServerType                      standalone
DefaultServer           on
RequireValidShell       off
AuthPAM                         off
AuthPAMConfig           ftp
# 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 the maximum number of processes per service
# (such as xinetd).
MaxInstances            30
# Set the user and group under which the server will run.
User                            nobody                    #此处用户和组用proftpd也不可以,用户为nobody,组为nogroup也不可以
Group                           nobody
# Normally, we want files to be overwriteable.

        AllowOverwrite          on

# A basic anonymous configuration, with no upload directories.

        User                            ftp
        Group                           ftp
        # We want clients to be able to login with "anonymous" as well as "ftp".
        RequireValidShell               off
        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.
        # Limit WRITE everywhere in the anonymous chroot.
        
                DenyAll
        

        
                AllowUser       ftp
                DenyAll
        



使用 CuteFTP 登录的错误信息如下:

  *** CuteFTP 8.0 - build May 31 2007 ***
状态:>   [2008-6-3 17:26:55] 正在获取列表“”...
状态:>   [2008-6-3 17:26:55] 正在连接到 FTP 服务器... 192.168.24.210:21 (ip = 192.168.24.210)...
状态:>   [2008-6-3 17:26:55] Socket 已连接。正在等候欢迎消息...
  [2008-6-3 17:27:05] 220 ProFTPD 1.3.1rc2 Server (ProFTPD Default Installation) [192.168.24.210]
状态:>   [2008-6-3 17:27:05] 已连接。正在验证...
命令:>   [2008-6-3 17:27:05] USER anonymous
  [2008-6-3 17:27:05] 331 Anonymous login ok, send your complete email address as your password
命令:>   [2008-6-3 17:27:05] PASS *****
  [2008-6-3 17:27:05] 530 Login incorrect.
错误:>    [2008-6-3 17:27:05] 未登录。
状态:>   [2008-6-3 17:27:05] 正在等候 30 秒...
错误:>    [2008-6-3 17:28:06] 无法从控制 Socket 读取。Socket 错误 = #10054。



-------------

[ 本帖最后由 liung 于 2008-6-4 09:15 编辑 ]

--------------------next---------------------

阅读(637) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~