From 17eea517f4355fff88f96cf9a54322cba4e658a7 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 17 Feb 2022 23:07:46 -0600 Subject: [PATCH] sudo fix --- scripts/1-setup.sh | 1 + scripts/3-post-setup.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/scripts/1-setup.sh b/scripts/1-setup.sh index 90a08d0..a8c4ae0 100755 --- a/scripts/1-setup.sh +++ b/scripts/1-setup.sh @@ -58,6 +58,7 @@ localectl --no-ask-password set-keymap ${KEYMAP} # Add sudo no password rights sed -i 's/^# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers +sed -i 's/^# %wheel ALL=(ALL:ALL) NOPASSWD: ALL/%wheel ALL=(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers #Add parallel downloading sed -i 's/^#ParallelDownloads/ParallelDownloads/' /etc/pacman.conf diff --git a/scripts/3-post-setup.sh b/scripts/3-post-setup.sh index 6d13153..7782ef2 100755 --- a/scripts/3-post-setup.sh +++ b/scripts/3-post-setup.sh @@ -112,8 +112,10 @@ echo -ne " " # Remove no password sudo rights sed -i 's/^%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers +sed -i 's/^%wheel ALL=(ALL:ALL) NOPASSWD: ALL/# %wheel ALL=(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers # Add sudo rights sed -i 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers +sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers rm -r /root/ArchTitus rm -r /home/$USERNAME/ArchTitus