Difference between revisions of "PAM Library"
Line 4: | Line 4: | ||
| ftp://ftp.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-0.99.6.3.tar.bz2 | | ftp://ftp.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-0.99.6.3.tar.bz2 | ||
|- | |- | ||
+ | !Download (To build pam_console): | ||
+ | | http://cvs.fedora.redhat.com/repo/dist/pam/pam-redhat-0.99.5-1.tar.bz2/e2edde7861c48195728bc531e5a277e0/pam-redhat-0.99.5-1.tar.bz2 | ||
|} | |} | ||
+ | |||
+ | RedHat develops a set of external modules for use with [[Linux-Pam]]. This includes the '''pam_console''' module which can be used by some programs such as [[HAL]] and [[gnome-volume-manager]]. The purpose of '''pam_console''' is to indicate which user is active at the console and take appropriate actions. It does this by listing active users in the ''/var/run/console'' directory and assigning one to the ''console.lock'' file. | ||
---- | ---- | ||
Line 14: | Line 18: | ||
== Non-Multilib == | == Non-Multilib == | ||
+ | |||
+ | If you would like to build the '''pam_console''' module run the following commands: | ||
+ | |||
+ | tar -xf ../pam-redhat-0.99.5-1.tar.bz2 && | ||
+ | sed -i 's,modules/Makefile,& modules/pam_console/Makefile,' configure.in && | ||
+ | sed -i 's/SUBDIRS =/& pam_console/' modules/Makefile.am && | ||
+ | sed -i '/^permsd_DATA/d' modules/pam_console/Makefile.am && | ||
+ | autoreconf -v | ||
Configure and compile the package: | Configure and compile the package: | ||
Line 39: | Line 51: | ||
=== 32Bit === | === 32Bit === | ||
+ | |||
+ | If you would like to build the '''pam_console''' module run the following commands: | ||
+ | |||
+ | tar -xf ../pam-redhat-0.99.5-1.tar.bz2 && | ||
+ | sed -i 's,modules/Makefile,& modules/pam_console/Makefile,' configure.in && | ||
+ | sed -i 's/SUBDIRS =/& pam_console/' modules/Makefile.am && | ||
+ | sed -i '/^permsd_DATA/d' modules/pam_console/Makefile.am && | ||
+ | autoreconf -v | ||
Configure and compile the package: | Configure and compile the package: | ||
Line 62: | Line 82: | ||
=== N32 === | === N32 === | ||
+ | |||
+ | If you would like to build the '''pam_console''' module run the following commands: | ||
+ | |||
+ | tar -xf ../pam-redhat-0.99.5-1.tar.bz2 && | ||
+ | sed -i 's,modules/Makefile,& modules/pam_console/Makefile,' configure.in && | ||
+ | sed -i 's/SUBDIRS =/& pam_console/' modules/Makefile.am && | ||
+ | sed -i '/^permsd_DATA/d' modules/pam_console/Makefile.am && | ||
+ | autoreconf -v | ||
Configure and compile the package: | Configure and compile the package: | ||
Line 85: | Line 113: | ||
=== 64Bit === | === 64Bit === | ||
+ | |||
+ | If you would like to build the '''pam_console''' module run the following commands: | ||
+ | |||
+ | tar -xf ../pam-redhat-0.99.5-1.tar.bz2 && | ||
+ | sed -i 's,modules/Makefile,& modules/pam_console/Makefile,' configure.in && | ||
+ | sed -i 's/SUBDIRS =/& pam_console/' modules/Makefile.am && | ||
+ | sed -i '/^permsd_DATA/d' modules/pam_console/Makefile.am && | ||
+ | autoreconf -v | ||
Configure and compile the package: | Configure and compile the package: |
Revision as of 10:25, 28 October 2006
RedHat develops a set of external modules for use with Linux-Pam. This includes the pam_console module which can be used by some programs such as HAL and gnome-volume-manager. The purpose of pam_console is to indicate which user is active at the console and take appropriate actions. It does this by listing active users in the /var/run/console directory and assigning one to the console.lock file.
Dependencies
Optional
Non-Multilib
If you would like to build the pam_console module run the following commands:
tar -xf ../pam-redhat-0.99.5-1.tar.bz2 && sed -i 's,modules/Makefile,& modules/pam_console/Makefile,' configure.in && sed -i 's/SUBDIRS =/& pam_console/' modules/Makefile.am && sed -i '/^permsd_DATA/d' modules/pam_console/Makefile.am && autoreconf -v
Configure and compile the package:
./configure --libdir=/usr/lib --sbindir=/lib/security \ --enable-securedir=/lib/security \ --enable-docdir=/usr/share/doc/Linux-PAM-0.99.6.3 \ --enable-read-both-confs && make
Install the package:
make install && chmod 4755 /lib/security/unix_chkpwd && mv /lib/security/pam_tally /sbin && mv /usr/lib/libpam*.so.0* /lib && LIBNAME=`cat libpam/libpam.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && ln -sf ../../lib/$LIBNAME /usr/lib/libpam.so && LIBNAME=`cat libpamc/libpamc.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && ln -sf ../../lib/$LIBNAME /usr/lib/libpamc.so && LIBNAME=`cat libpam_misc/libpam_misc.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && ln -sf ../../lib/$LIBNAME /usr/lib/libpam_misc.so
Multilib
32Bit
If you would like to build the pam_console module run the following commands:
tar -xf ../pam-redhat-0.99.5-1.tar.bz2 && sed -i 's,modules/Makefile,& modules/pam_console/Makefile,' configure.in && sed -i 's/SUBDIRS =/& pam_console/' modules/Makefile.am && sed -i '/^permsd_DATA/d' modules/pam_console/Makefile.am && autoreconf -v
Configure and compile the package:
CC="gcc ${BUILD32}" ./configure --libdir=/usr/lib --sbindir=/lib/security \ --enable-securedir=/lib/security \ --enable-docdir=/usr/share/doc/Linux-PAM-0.99.6.3 \ --enable-read-both-confs && make
Install the package:
make install && chmod 4755 /lib/security/unix_chkpwd && mv /lib/security/pam_tally /sbin && mv /usr/lib/libpam*.so.0* /lib && LIBNAME=`cat libpam/libpam.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && ln -sf ../../lib/$LIBNAME /usr/lib/libpam.so && LIBNAME=`cat libpamc/libpamc.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && ln -sf ../../lib/$LIBNAME /usr/lib/libpamc.so && LIBNAME=`cat libpam_misc/libpam_misc.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && ln -sf ../../lib/$LIBNAME /usr/lib/libpam_misc.so
N32
If you would like to build the pam_console module run the following commands:
tar -xf ../pam-redhat-0.99.5-1.tar.bz2 && sed -i 's,modules/Makefile,& modules/pam_console/Makefile,' configure.in && sed -i 's/SUBDIRS =/& pam_console/' modules/Makefile.am && sed -i '/^permsd_DATA/d' modules/pam_console/Makefile.am && autoreconf -v
Configure and compile the package:
CC="gcc ${BUILDN32}" ./configure --libdir=/usr/lib32 --sbindir=/lib32/security \ --enable-securedir=/lib32/security \ --enable-docdir=/usr/share/doc/Linux-PAM-0.99.6.3 \ --enable-read-both-confs && make
Install the package:
make install && chmod 4755 /lib32/security/unix_chkpwd && mv /lib32/security/pam_tally /sbin && mv /usr/lib32/libpam*.so.0* /lib && LIBNAME=`cat libpam/libpam.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && ln -sf ../../lib32/$LIBNAME /usr/lib32/libpam.so && LIBNAME=`cat libpamc/libpamc.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && ln -sf ../../lib32/$LIBNAME /usr/lib32/libpamc.so && LIBNAME=`cat libpam_misc/libpam_misc.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && ln -sf ../../lib32/$LIBNAME /usr/lib32/libpam_misc.so
64Bit
If you would like to build the pam_console module run the following commands:
tar -xf ../pam-redhat-0.99.5-1.tar.bz2 && sed -i 's,modules/Makefile,& modules/pam_console/Makefile,' configure.in && sed -i 's/SUBDIRS =/& pam_console/' modules/Makefile.am && sed -i '/^permsd_DATA/d' modules/pam_console/Makefile.am && autoreconf -v
Configure and compile the package:
CC="gcc ${BUILD64}" ./configure --libdir=/usr/lib64 --sbindir=/lib64/security \ --enable-securedir=/lib64/security \ --enable-docdir=/usr/share/doc/Linux-PAM-0.99.6.3 \ --enable-read-both-confs && make
Install the package:
make install && chmod 4755 /lib64/security/unix_chkpwd && mv /lib64/security/pam_tally /sbin && mv /usr/lib64/libpam*.so.0* /lib64 && LIBNAME=`cat libpam/libpam.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && ln -sf ../../lib64/$LIBNAME /usr/lib64/libpam.so && LIBNAME=`cat libpamc/libpamc.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && ln -sf ../../lib64/$LIBNAME /usr/lib64/libpamc.so && LIBNAME=`cat libpam_misc/libpam_misc.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && ln -sf ../../lib64/$LIBNAME /usr/lib64/libpam_misc.so