你的位置:
问答吧
-> Linux
-> 问题详情
在安装pam-mysql时候出错.
执行./configurre时倒数几行:
checking PAM_AUTHTOK_RECOVERY_ERR availability... yes
checking if the second argument of pam_get_user() takes const pointer... yes
checking if the third argument of pam_get_data() takes const pointer... yes
checking if the third argument of pam_get_item() takes const pointer... yes
checking if the second argument of pam_conv.conv() takes const pointer... no
checking if md5.h is derived from Cyrus SASL Version 1... no
checking md5.h usability... no
checking md5.h presence... no
checking for md5.h... no
checking if md5.h is Solaris's... no
checking for md5.h... (cached) no
checking for MD5Data... no
checking for crypt in -lcrypt... yes
checking for crypt... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pam_mysql.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
执行make时:
没有出错;
执行make install时:
[root@localhost pam_mysql-0.7RC1]# make install
make[1]: Entering directory `/root/test/pam_mysql-0.7RC1'
/bin/sh ./mkinstalldirs /usr/lib/security
/bin/sh ./libtool --mode=install /usr/bin/install -c pam_mysql.la /usr/lib/security/pam_mysql.la
/usr/bin/install -c .libs/pam_mysql.so /usr/lib/security/pam_mysql.so
/usr/bin/install -c .libs/pam_mysql.lai /usr/lib/security/pam_mysql.la
PATH="$PATH:/sbin" ldconfig -n /usr/lib/security
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib/security
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so( manual pages.
----------------------------------------------------------------------
make[1]: Nothing to be done for `install-data-am'.
make[1]: Leaving directory `/root/test/pam_mysql-0.7RC1'
请问是怎么一回事??谢谢
作者: mfkwwgi
发布时间: 2009-03-10
lz 你安装成功了.
作者: leetaedong
发布时间: 2009-03-10
Libraries have been installed in:
/usr/lib/security
成功了
作者: chenyx
发布时间: 2009-03-10
只要安装过程中没有提示错误中断,一般就安装成功了
作者: zengmao
发布时间: 2009-03-10
但我在/usr/lib/security/就没有发现pam_mysql.so这个文件呢.
我也find / -name pam_mysql.so
也没有找到.
作者: mfkwwgi
发布时间: 2009-03-10
/usr/bin/install -c .libs/pam_mysql.so /usr/lib/security/pam_mysql.so
已经安装上了, 要是没有,查查源码目录下有没有
作者: chenyx
发布时间: 2009-03-10
唉.真的呢.我开始没有看到.后来.我就关机了.
现在我起动一看.真的有了.usr/lib/security/pam_mysql.so
作者: mfkwwgi
发布时间: 2009-03-10
QUOTE:
原帖由 mfkwwgi 于 2009-3-10 21:35 发表
唉.真的呢.我开始没有看到.后来.我就关机了.
现在我起动一看.真的有了.usr/lib/security/pam_mysql.so
那么神奇?
作者: leetaedong
发布时间: 2009-03-10
已经安装了,看看对应的so文件是否生成了
作者: kns1024wh
发布时间: 2009-03-10
QUOTE:
原帖由 kns1024wh 于 2009-3-10 21:41 发表
已经安装了,看看对应的so文件是否生成了
你说的是/usr/lib/security/pam_mysql.la和pam_mysql.so吗.
是有的.
作者: mfkwwgi
发布时间: 2009-03-10
重启就有了?灵异事件?
作者: chenyx
发布时间: 2009-03-10
怎么还是不能正常登陆vsftpd呢.
用mysql里面的记录登陆还是不行呢.
anonymous_enable=YES
local_enable=YES
write_enable=YES
pam_service_name=vsftpd
user_config_dir=/etc/vsftpd/vsftpd_user
virtual_use_local_privs=NO
anon_upload_enable=YES
anon_other_write_enable=YES
ftpd_banner="welcome to linux->localhost.local"
banner_file=/etc/vsftpd/vsftpd_banner_file
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
以上是我在/etc/vsftpd/vsftpd.conf里面加的行.
作者: mfkwwgi
发布时间: 2009-03-10
google 找些资料..
配置这个不算太容易.
作者: leetaedong
发布时间: 2009-03-10
我在/etc/pam.d/vsftpd里面
把原为的注释掉了.并加了:
auth required /usr/lib/security/pam_mysql.so user=kedi passwd=kedi1234 host=localhost db=TEMP table=KEDI usercolumn=NAME passwdcolumn=PASSWORD crypt=0
account required /usr/lib/security/pam_mysql.so user=kedi passwd=kedi123 host=localhost db=TEMP table=KEDI usercolumn=NAME passwdcolumn=PASSWORD crypt=0
作者: mfkwwgi
发布时间: 2009-03-10
谢谢.嗯.我在网上找一下资料.如果OK了.一定回来.补上.
作者: mfkwwgi
发布时间: 2009-03-10
还没有解决.没有办法由pam验证.
作者: mfkwwgi
发布时间: 2009-05-06
http://linux.chinaunix.net/bbs/viewthread.php?tid=1097231
看看这个帖子
作者: javasuncom
发布时间: 2009-05-06
那样就是安装成功了
作者: kns1024wh
发布时间: 2009-05-09
谢谢大家的帮助
作者: mfkwwgi
发布时间: 2009-05-16