cd build
install -v -m755 -d /etc/pam.d
ninja install
chmod -v 4755 ${tg}/sbin/unix_chkpwd

echo "Configuring Linux-PAM"
sleep 1
echo "
auth            required        pam_unix.so     nullok
account         required        pam_unix.so
session         required        pam_unix.so
password        required        pam_unix.so     nullok
" >  /etc/pam.d/other

install -vdm755 /etc/pam.d

echo "
account   required    pam_unix.so
" > /etc/pam.d/system-auth

echo "
session   required    pam_unix.so
" > /etc/pam.d/system-session

echo "
password  required    pam_unix.so       yescrypt shadow try_first_pass
" > /etc/pam.d/system-password
