PureFTPd : 530 Login authentication failed

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
bjiokn
帖子: 14
注册时间: 2009-05-24 9:09
联系:

PureFTPd : 530 Login authentication failed

#1

帖子 bjiokn » 2011-02-23 10:02

遇到的问题::530 Login authentication failed

首先介绍下环境:
安装Pure-FTPd
sudo apt-get install pure-ftpd-mysql mysql-server
Chroot设置
sudo sh -c "echo 'yes' > /etc/pure-ftpd/conf/ChrootEveryone"
为Pure-FTPd创建MySQL数据库
mysql -uroot -pxdnice -e "create database ftpusers;"
web管理界面
添加账号管理

WinSock 2.0 -- OpenSSL 0.9.8i 15 Sep 2008
[右] 正在连接到 192.168.1.6 -> IP=192.168.1.6 PORT=21
[右] 已连接到 192.168.1.6
[右] 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
[右] 220-You are user number 1 of 50 allowed.
[右] 220-Local time is now 15:12. Server port: 21.
[右] 220-This is a private system - No anonymous login
[右] 220 You will be disconnected after 15 minutes of inactivity.
[右] USER ftp_user
[右] 331 User ftp_user OK. Password required
[右] PASS (隐藏)
[右] 530 Login authentication failed
[右] 连接失败
[右] 正在延迟 120 秒, 之后将尝试第 1 次重新连接

查看ftp服务器 cat /var/log/messages 日志内容:
Feb 16 16:03:24 bos pure-ftpd: (?@192.168.1.51) [INFO] New connection from 192.168.1.51
Feb 16 16:03:24 bos pure-ftpd: (?@192.168.1.51) [INFO] PAM_RHOST enabled. Getting the peer address
Feb 16 16:03:36 bos pure-ftpd: (?@192.168.1.51) [WARNING] Authentication failed for user [ftp_user]
Feb 16 16:03:36 bos pure-ftpd: (?@192.168.1.51) [INFO] Logout.
(能够ping的通,但就是客户端ftp连接不成功!)
1.仔细检查过用户名和密码,是正确的,没有错误.
2.密码的首字母是大写.
3. /etc/pure-ftpd/db/mysql.conf 和 /var/www/ftp/config.php 的数据库连接配置相同.
4.匿名登录用户是关闭状态.
5.在 /etc/pure-ftpd/auth 目录下使用软连接到MySQLConfigFile中的/etc/pure-ftpd/db/mysql.conf:
ln -s ../conf/MySQLConfigFile 30mysql
6.配置文件权限问题吗?所有配置文件的权限:-rw-r--r--

但问题依然存在:530 Login authentication failed
并非你的人生无聊,而是因为你在追求一个无聊的人生....
头像
hiphen
帖子: 803
注册时间: 2010-08-27 15:53

Re: PureFTPd : 530 Login authentication failed

#2

帖子 hiphen » 2011-02-23 18:52

"PAM_RHOST enabled. Getting the peer address"
是否跟你的PAM设定有关?

具体等了解的朋友来回答你,我没玩过ftp server
基础问题,请看入门手册http://people.ubuntu.com/~happyaron/udc-cn/lucid-html/

Acer aspire 4736G / Ubuntu 10.04LTS
Asus eeepc900 / Xandros
Nokia N900 / Maemo 1.2.12
回复