From f2dc59efc3227f2bfa73d36e0b4c642f269d5656 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Fri, 29 May 2020 14:05:48 +0200 Subject: Only configure suauth if the system is not using PAM --- make_slackware_live.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'make_slackware_live.sh') diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 6de478a..6667fe8 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -1471,12 +1471,14 @@ fi chroot ${LIVE_ROOTDIR} /usr/sbin/useradd -c "Slackware Live User" -g users -G wheel,audio,cdrom,floppy,plugdev,video,power,netdev,lp,scanner,kmem,dialout,games,disk,input -u ${LIVEUIDNR} -d /home/${LIVEUID} -m -s /bin/bash ${LIVEUID} echo "${LIVEUID}:${LIVEPW}" | chroot ${LIVE_ROOTDIR} /usr/sbin/chpasswd -# Configure suauth: -cat <${LIVE_ROOTDIR}/etc/suauth +# Configure suauth if we are not on a PAM system (where this does not work): +if [ ! -L ${LIVE_ROOTDIR}/lib${LIBDIRSUFFIX}/libpam.so.? ]; then + cat <${LIVE_ROOTDIR}/etc/suauth root:${LIVEUID}:OWNPASS root:ALL EXCEPT GROUP wheel:DENY EOT -chmod 600 ${LIVE_ROOTDIR}/etc/suauth + chmod 600 ${LIVE_ROOTDIR}/etc/suauth +fi # Configure sudoers: chmod 640 ${LIVE_ROOTDIR}/etc/sudoers -- cgit v1.2.3