Re: find PAM library version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx - http://frozencrow.org/

Attachment: pgpGGfxp6fU3C.pgp
Description: PGP signature

_______________________________________________
Pam-list mailing list
Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux