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---------------------
下面是在windows下面的ftp登录提示的信息,分别用的是不输入用户名,输入用户名无密码,和输入ftp用户的用户名和密码三者
C:\>ftp 192.168.24.210
Connected to 192.168.24.210.
220 ProFTPD 1.3.1rc2 Server (ProFTPD Default Installation) [192.168.24.210]
User (192.168.24.210:(none)): #这一步没有我没有输入用户名
500 USER: command requires a parameter.
Login failed.
ftp> user ftp #默认的匿名用户ftp
331 Anonymous login ok, send your complete email address as your password
Password: #没有输入密码
530 Login incorrect.
Login failed.
ftp> user test #自己建立的ftp用户
331 Password required for test
Password:
230 User test logged in
ftp> dir
200 PORT command successful
150 Opening ASCII mode data connection for file list
226 Transfer complete
ftp>
---
[
本帖最后由 liung 于 2008-6-4 09:16 编辑 ]
--------------------next---------------------
还是不行啊
cuteftp的提示信息如下:
命令:> [2008-6-4 12:36:48] USER anonymous
[2008-6-4 12:36:48] 331 Anonymous login ok, send your complete email address as your password
命令:> [2008-6-4 12:36:48] PASS *****
[2008-6-4 12:36:51] 530-Unable to set anonymous privileges.
530 Login incorrect.
错误:> [2008-6-4 12:36:51] 未登录。
状态:> [2008-6-4 12:36:51] 正在等候 30 秒...
状态:> [2008-6-4 12:37:21] ============== 尝试 #2 ==============
命令:> [2008-6-4 12:37:21] USER anonymous
[2008-6-4 12:37:21] 331 Anonymous login ok, send your complete email address as your password
命令:> [2008-6-4 12:37:21] PASS *****
[2008-6-4 12:37:21] 530 Login incorrect.
错误:> [2008-6-4 12:37:21] 未登录。
状态:> [2008-6-4 12:37:21] 正在等候 30 秒...
错误:> [2008-6-4 12:37:21] 无法从控制 Socket 读取。Socket 错误 = #10054。
可能还是权限的问题,我ftp用户和ftp用户组都已经有了。
# cat /etc/passwd | grep ftp
proftpd:x:102:442:added by portage for proftpd:/dev/null:/sbin/nologin
ftp:x:1001:21::/home/ftp:/bin/false
# cat /etc/group | grep ftp
ftp:x:21:bonkz,ftp
proftpd:x:442:
# ls -l /home/
total 0
drwxr-xr-x 4 ftp ftp 96 May 30 16:16 ftp
--------------------next---------------------