find PAM library version

Ed Schmollinger schmolli at frozencrow.org
Fri Apr 10 16:11:26 UTC 2009


On Fri, Apr 10, 2009 at 04:32:20PM +0530, Sudarshan Soma wrote:
> Can anyone please tell me if i can determine the libpam version with
> pam_unix module. I have pam_unix.so, but i dont know with which libpam
> its linked with. It just shows me libpam.so in ldd.
> 
> Please let me know if i can determine the exact version such as
> libbpam.so.0.81.6(which is available from Linux-PAM-0.99.7.1.tar.gz
> (http://www.kernel.org/pub/linux/libs/pam/pre/library/)

if ldd says you are linked against libpam.so, then you are not linked
against any specific version.  you would have to take a look at
libpam.so to see which version it is.  that will probably be easy
because libpam.so is generally a symlink to a more version-specific
name.

cora% ldd /lib/security/pam_unix.so | grep libpam
        libpam.so.0 => /lib/libpam.so.0 (0xb7d7e000)
cora% ls -l /lib/libpam.so.0
lrwxrwxrwx  1 root root 14 2005-02-08 22:05 /lib/libpam.so.0 -> libpam.so.0.76
cora% ls -l /lib/libpam.so.0.76
-rw-r--r--  1 root root 30360 2004-06-28 11:39 /lib/libpam.so.0.76

if you changed the libpam.so symlink to point at a different version of
libpam, then you would be linked to that other version.  as mr kukuk
already alluded, that should work fine; no need to recompile or
whatever.

-- 
Ed Schmollinger - schmolli at frozencrow.org - http://frozencrow.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pam-list/attachments/20090410/c1fdb857/attachment.sig>


More information about the Pam-list mailing list