# Linux-PAM 0.99.6.3
# ==================
# Due to security concerns and thinking it's more trouble than it's worth,
# Slackware does not include PAM.
# Prerequisites:
# bison
# flex
# grep
# Berkeley DB (bdb)
# sgml2txt, sgml2html, sgml2latex (optional; Slackware includes these in
# it's sgml-tools/linuxdoc-tools packages)
# ghostscript's ps2pdf (optional)
# cracklib (optional; without it you won't get pam_cracklib)
# Below, there's a part I run to blow away old library files to ensure that
# there aren't any extra files lying around that aren't in use. If you
# run a multi-user system where PAM-linked apps may be in use while you
# upgrade PAM or if a daemon is running that uses PAM, you may want to skip
# the part that cleans out libpam* from /lib below and clean up old files
# manually when you're done with the upgrade.
# There used to be a blurb in here to install an old version of cracklib
# under the /usr prefix. If you did that, remove it by following the
# uninstall instructions at the bottom of the cracklib howto, then install
# the new version covered in there. Then come back here and continue with
# the rest.
# Now grab, build, and install Linux-PAM:
cd
test -f installed/Linux-PAM-0.99.6.3.tar.bz2 &&
mv installed/Linux-PAM-0.99.6.3.tar.bz2 .
test ! -f Linux-PAM-0.99.6.3.tar.bz2 &&
wget http://ftp.kernel.org/pub/linux/libs/pam/pre/library/\
Linux-PAM-0.99.6.3.tar.bz2
# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "4c2830ed55a41e795af6a482009a036c Linux-PAM-0.99.6.3.tar.bz2" | \
md5sum -c
# Verify tarball w/ sha1sum:
# (this also came from my gpg-verified tarball)
echo "984f86b5a767fba1572c7963b8f8c997132fff2b Linux-PAM-0.99.6.3.tar.\
bz2" | sha1sum -c
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "Linux-PAM-*" -exec rm -r {} \;
tar xjvf ~/Linux-PAM-0.99.6.3.tar.bz2
cd Linux-PAM-0.99.6.3
test $UID = 0 && chown -R root:root .
./configure --mandir=/usr/man
# Not sure about this version, but older versions would fail if you didn't
# have tex installed. If that appears to be happening to you, try 'make -i'
# to skip the docs it's unable to build. You'll need to run 'make -i
# install' too.
make
# Become root to clean up old files and to install it
su
# Backup your /etc/security files (if you have any):
test -d /etc/security &&
( mkdir -p -m 0700 ~/backup
cd /etc/security
tar cjvf ~/backup/pam-etc-security-`date +%Y%m%d`.tar.bz2 . )
( cd /lib ; rm -f libpam.* libpamc.* libpam_misc.* )
make install
chown -R $USER .
# Put the various files in /etc/pam.d (other, login, sshd, ...).
# There's a sample pam.conf in the conf subdirectory of the source and you
# can also get some examples from the pam_ldap source.
# And here: http://englanders.cc/pub/linux/misc/shadow-pamfiles.tgz
mkdir -p /etc/pam.d
cd /etc/pam.d