From f0722b06e5f2e3831b19114509ddfca70bcffee0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 17 Oct 2015 10:58:06 +0200 Subject: installer: remove liveuser from /etc/sudoers in local installation. Close #43 --- installer.sh.in | 1 + 1 file changed, 1 insertion(+) diff --git a/installer.sh.in b/installer.sh.in index dd57f5a..290d5cd 100644 --- a/installer.sh.in +++ b/installer.sh.in @@ -856,6 +856,7 @@ ${BOLD}Do you want to continue?${RESET}" 20 80 || return # Remove live user. echo "Removing $USERNAME live user from targetdir ..." >$LOG chroot $TARGETDIR userdel -r $USERNAME >$LOG 2>&1 + sed -i -e "/$USERNAME ALL=.*/d" $TARGETDIR/etc/sudoers DIALOG --title "Check $LOG for details" \ --infobox "Rebuilding initramfs for target ..." 4 60 echo "Rebuilding initramfs for target ..." >$LOG -- cgit 1.4.1