求助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上就不可以,唉郁闷啊!!!请大家分析一下
,如果需要,我贴上配置文件 !!!!