# A while back I created a patch that would allow shadow with shared
# libraries _and_ PAM support, but haven't used it since. Here it is if you
# want to do this:
# http://englanders.cc/pub/linux/patches/shadow-4.0.3-pamfix.patch
# (the build would totally fail without the patch)
cd
test -f installed/shadow-4.0.7.tar.bz2 && mv installed/shadow-4.0.7.tar.bz2 .
test ! -f shadow-4.0.7.tar.bz2 &&
wget ftp://ftp.pld.org.pl/software/shadow/shadow-4.0.7.tar.bz2
cd /usr/local/src
find -type d -maxdepth 1 -name "shadow-*" -exec rm -r {} \;
tar xjvf ~/shadow-4.0.7.tar.bz2
cd shadow-4.0.7
chown -R root.root .
find -type d -exec chmod 755 {} \;
find -type f -perm 664 -exec chmod 644 {} \;
find -type f -perm 775 -exec chmod 755 {} \;
# If you want to build shadow with PAM support, add --with-libpam to the
# configure line below and see the bottom for info about /etc/pam.d files.
# If you use PAM and don't already have these set up (if you do, it'll blow
# them away):
test -d /etc/pam.d &&
( cd /etc/pam.d
wget http://englanders.cc/pub/linux/misc/shadow-pamfiles.tgz &&
tar xzvf shadow-pamfiles.tgz &&
rm -f shadow-pamfiles.tgz
test -f passwd.noldap && ln -sf passwd.noldap passwd
test -f su.noldap && ln -sf su.noldap su )
# Note:
# faillog is in /usr/bin here, /usr/sbin in slack (last time I checked)
# lastlog is in /usr/bin here, /usr/sbin in slack (")