centos中pure-ftpd服务器错误:530 Login authentication failed解决办法
发布:smiling 来源: PHP粉丝网 添加日期:2015-04-21 09:35:36 浏览: 评论:0
pure-ftpd服务器是一款ftp服务器,但小编有时会碰到530 Login authentication failed错误了,那么碰到此问题如何解决?下面一起来看看.
今天,连接pure-ftpd的时候竟然不能登录,总是提示:
530 Login authentication failed
Pure-Ftpd安装在debian6上,所以与Centos下有些不同,启用调试模式:
- [root@localhost ~]# lftp
- lftp :~> open -u feifei,"123456" 192.168.2.23
- lftp feifei@192.168.2.23:~> debug
- lftp feifei@192.168.2.23:~> ls
- ---- 正在连接到 192.168.2.23 (192.168.2.23) 端口 21
- <--- 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
- <--- 220-You are user number 2 of 50 allowed.
- <--- 220-Local time is now 02:46. Server port: 21.
- <--- 220-This is a private system - No anonymous login
- <--- 220-IPv6 connections are also welcome on this server.
- <--- 220 You will be disconnected after 15 minutes of inactivity.
- ---> FEAT
- <--- 211-Extensions supported:
- <--- EPRT
- <--- IDLE
- <--- MDTM
- <--- SIZE
- <--- REST STREAM
- <--- MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
- <--- MLSD
- <--- AUTH TLS
- <--- PBSZ
- <--- PROT
- <--- UTF8
- <--- TVFS
- <--- ESTA
- <--- PASV
- <--- EPSV
- <--- SPSV
- <--- ESTP
- <--- 211 End.
- ---> AUTH TLS
- <--- 500 This security scheme is not implemented
- ---> OPTS UTF8 ON
- <--- 200 OK, UTF-8 enabled
- ---> OPTS MLST type;size;modify;UNIX.mode;UNIX.uid;UNIX.gid;
- <--- 200 MLST OPTS type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique; --phpfensi.com
- ---> USER adminis
- <--- 331 User feifei OK. Password required
- ---> PASS 123456
- <--- 530 Login authentication failed
- ---> PWD
ls:登录失败:530 Login authentication failed
- <--- 530 You aren't logged in
- ---> QUIT
- <--- 221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
- <--- 221 Logout.
- ---- 关闭控制连接
pure-ftpd是使用puredb方式认证的,通过查看/usr/sbin/pure-ftpd-wrapper这个perl脚本后,发现下面一段代码:
- # examine authentication files in /etc/pure-ftpd/auth
- my @authfiles;
- opendir (ETCAUTH, '/etc/pure-ftpd/auth')
- || die "$0: Couldn't examine directory /etc/pure-ftpd/auth: $!n";
- @authfiles = sort (grep {-l "/etc/pure-ftpd/auth/$_"} readdir (ETCAUTH));
- closedir (ETCAUTH);
上面,很清楚写着会检查/etc/pure-ftpd/auth/这个目录的认证文件,并且用sort进行排序,于是,我查看了一下服务器的/etc/pure-ftpd/auth/这个目录:
root@vps:~# ls /etc/pure-ftpd/auth
65unix 70pam
发现就只有pam和unix认证方式的认证文件,而没有puredb的,因为我的是使用puredb认证的,于是进行以下步骤:
root@vps:/etc/pure-ftpd/auth# ln -s /etc/pure-ftpd/conf/PureDB 60puredb #前面的60就是用于排序的.
- root@vps:/etc/pure-ftpd/auth# ls
- 60puredb 65unix 70pam
- root@vps:/etc/pure-ftpd/auth# /etc/init.d/pure-ftpd restart
- Restarting ftp server: Running: /usr/sbin/pure-ftpd -l puredb:/etc/pure-ftpd/pureftpd.pdb -l pam -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -8 UTF-8 -E -B
可以看到,上面的启动参数已经增加了:-l puredb:/etc/pure-ftpd/pureftpd.pdb,而原来的启动参数如下:
- root@vps:/etc/pure-ftpd/auth# /etc/init.d/pure-ftpd restart
- Restarting ftp server: Running: /usr/sbin/pure-ftpd -l pam -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -8 UTF-8 -E -B
Tags: pure-ftpd 530 authentication
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)