diff options
author | Eric Hameleers <alien@slackware.com> | 2020-05-29 14:05:48 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2020-05-29 14:05:48 +0200 |
commit | f2dc59efc3227f2bfa73d36e0b4c642f269d5656 (patch) | |
tree | 78b82dd27d2f24f29c41abc6919bc74b3cff1d3b /make_slackware_live.sh | |
parent | 0a0c7ab4f93180f104670388eacb10ff48c6d621 (diff) | |
download | liveslak-f2dc59efc3227f2bfa73d36e0b4c642f269d5656.tar.gz liveslak-f2dc59efc3227f2bfa73d36e0b4c642f269d5656.tar.xz |
Only configure suauth if the system is not using PAM
Diffstat (limited to '')
-rwxr-xr-x | make_slackware_live.sh | 8 |
1 files changed, 5 insertions, 3 deletions
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 <<EOT >${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 <<EOT >${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 |