vsftp pam mysql_求助Pam_mysql+vsftp认证的问题

求助Pam_mysql+vsftp认证的问题

发布时间:2009-07-27 18:49:06来源:红联作者:liooge

最近我在搞一个pam_mysql+vsftpd的认证的东西,整了一两天实在搞不出来啊,请大家帮小弟分析一下吧!!日志中如下:

connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13))[code][root@localhost log]# tail -40 secure

Jul 27 23:31:18 localhost vsftpd[2270]: pam_mysql - option verbose is set to "1"

Jul 27 23:31:18 localhost vsftpd[2270]: pam_mysql - pam_mysql_close_db() called.

Jul 27 23:31:18 localhost vsftpd[2270]: pam_mysql - pam_sm_authenticate() called.

Jul 27 23:31:18 localhost vsftpd[2270]: pam_mysql - pam_mysql_open_db() called.

Jul 27 23:31:18 localhost vsftpd[2270]: pam_mysql - MySQL error (Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13))

Jul 27 23:31:18 localhost vsftpd[2270]: pam_mysql - pam_mysql_open_db() returning 5.

Jul 27 23:31:18 localhost vsftpd[2270]: pam_mysql - pam_sm_authenticate() returning 9.

Jul 27 23:31:18 localhost vsftpd[2270]: pam_mysql - pam_mysql_release_ctx() called.

Jul 27 23:31:18 localhost vsftpd[2270]: pam_mysql - pam_mysql_destroy_ctx() called.

Jul 27 23:31:18 localhost vsftpd[2270]: pam_mysql - pam_mysql_close_db() called.

Jul 27 23:31:46 localhost vsftpd[2274]: pam_mysql - option verbose is set to "1"

Jul 27 23:31:46 localhost vsftpd[2274]: pam_mysql - pam_mysql_close_db() called.

Jul 27 23:31:46 localhost vsftpd[2274]: pam_mysql - pam_sm_authenticate() called.

Jul 27 23:31:46 localhost vsftpd[2274]: pam_mysql - pam_mysql_open_db() called.

Jul 27 23:31:46 localhost vsftpd[2274]: pam_mysql - MySQL error (Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13))

Jul 27 23:31:46 localhost vsftpd[2274]: pam_mysql - pam_mysql_open_db() returning 5.

Jul 27 23:31:46 localhost vsftpd[2274]: pam_mysql - pam_sm_authenticate() returning 9.

Jul 27 23:31:46 localhost vsftpd[2274]: pam_mysql - pam_mysql_release_ctx() called.

Jul 27 23:31:46 localhost vsftpd[2274]: pam_mysql - pam_mysql_destroy_ctx() called.

Jul 27 23:31:46 localhost vsftpd[2274]: pam_mysql - pam_mysql_close_db() called.

Jul 28 02:32:44 localhost vsftpd[2358]: pam_mysql - option verbose is set to "1"

Jul 28 02:32:44 localhost vsftpd[2358]: pam_mysql - pam_mysql_close_db() called.

Jul 28 02:32:44 localhost vsftpd[2358]: pam_mysql - pam_sm_authenticate() called.

Jul 28 02:32:44 localhost vsftpd[2358]: pam_mysql - pam_mysql_open_db() called.

Jul 28 02:32:44 localhost vsftpd[2358]: pam_mysql - MySQL error (Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13))

Jul 28 02:32:44 localhost vsftpd[2358]: pam_mysql - pam_mysql_open_db() returning 5.

Jul 28 02:32:44 localhost vsftpd[2358]: pam_mysql - pam_sm_authenticate() returning 9.

Jul 28 02:32:44 localhost vsftpd[2358]: pam_mysql - pam_mysql_release_ctx() called.

Jul 28 02:32:44 localhost vsftpd[2358]: pam_mysql - pam_mysql_destroy_ctx() called.

Jul 28 02:32:44 localhost vsftpd[2358]: pam_mysql - pam_mysql_close_db() called.

Jul 28 02:32:51 localhost vsftpd[2361]: pam_mysql - option verbose is set to "1"

Jul 28 02:32:51 localhost vsftpd[2361]: pam_mysql - pam_mysql_close_db() called.

Jul 28 02:32:51 localhost vsftpd[2361]: pam_mysql - pam_sm_authenticate() called.

Jul 28 02:32:51 localhost vsftpd[2361]: pam_mysql - pam_mysql_open_db() called.

Jul 28 02:32:51 localhost vsftpd[2361]: pam_mysql - MySQL error (Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13))

Jul 28 02:32:51 localhost vsftpd[2361]: pam_mysql - pam_mysql_open_db() returning 5.

Jul 28 02:32:51 localhost vsftpd[2361]: pam_mysql - pam_sm_authenticate() returning 9.

Jul 28 02:32:51 localhost vsftpd[2361]: pam_mysql - pam_mysql_release_ctx() called.

Jul 28 02:32:51 localhost vsftpd[2361]: pam_mysql - pam_mysql_destroy_ctx() called.

Jul 28 02:32:51 localhost vsftpd[2361]: pam_mysql - pam_mysql_close_db() called.[/code]看网上说路径的问题,我的好像不存在,而且路径什么的都 正确的!!我的Fedora11 曾用yum update 一下,

而且最我感到linux下mysql的用户有点混乱,比如在client中可以登陆,但在其他机子上的php myadmin上就不可以,唉郁闷啊!!!请大家分析一下

,如果需要,我贴上配置文件 !!!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值