免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2399 | 回复: 2
打印 上一主题 下一主题

[FTP] 为什么我的VSFTPD只能匿名登录??? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-04-28 15:36 |只看该作者 |倒序浏览
我的Vsftpd是Vsftpd-2.0.3,安装时采用MYSQL认证,系统为Rh9.0
可在客户端ftp X.X.X.X时,显示:
this ftp server is anonymous only
不能用其它用户登录。请问怎样解决这个问题?即可用ABC这样的用户登录

论坛徽章:
0
2 [报告]
发表于 2005-04-28 16:20 |只看该作者

为什么我的VSFTPD只能匿名登录???

我改VSFTPD.conf文件中的local_enable=yes后,可以用其他用户名登录。
可新的问题又来了,我在Mysql数据库中创建的用户不能登录,
错误提示为:
530 Login incorrect
Login failed。

附:
mysql>; use vsftpdvu;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql>; select * from users;
+------+------------------+
| name | passwd           |
+------+------------------+
| yjh  | 7833668c4ca1a0d6 |
| xyjh | 2df4db3c6b36ca3e |
+------+------------------+
2 rows in set (0.00 sec)

/etc/pam.d/ftp 或/etc/pam.d/vsftpd的内容:
#%PAM-1.0
auth required pam_mysql.o user=vsftpdguest passwd=i52serial0 host=localhost db=vsftpdvu table=users usercolumn=name passwdcolumn=passwd crypt=2
account required pam_mysql.o user=vsftpdguest passwd=i52serial0 host=localhost db=vsftpdvu table=users usercolumn=name passwdcolumn=passwd crypt=2

论坛徽章:
0
3 [报告]
发表于 2005-04-30 23:16 |只看该作者

为什么我的VSFTPD只能匿名登录???

你要么允许系统账号,要么使用基于mysql的虚拟帐户
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP