From de6de8c4205f20f7e50b1fdab9c60b6dc37794a2 Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 27 Sep 2017 09:23:22 -0700 Subject: [PATCH] sudoers fix --- root.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/root.sh b/root.sh index d32a7c2..8f44867 100755 --- a/root.sh +++ b/root.sh @@ -110,9 +110,10 @@ curl http://lukesmith.xyz/larbs/user.sh > /home/$USER/user.sh printf "${BLUE}Running script as new user $USER...\n${NC}" cp /etc/sudoers /etc/sudoers.prelarbs echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers + sudo -u $USER bash /home/$USER/user.sh -echo -e "root ALL=(ALL) ALL\n%wheel ALL=(ALL) ALL\n%wheel ALL=(ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Syyu,/usr/bin/packer -Syu,/usr/bin/packer -Syyu,/usr/bin/systemctl restart NetworkManager\nDefaults !tty_tickets" > /etc/sudoers +curl https://raw.githubusercontent.com/LukeSmithxyz/LARBS/master/sudoers > /etc/sudoers dialog --title "All done!" --msgbox "Congrats! Provided there were no hidden errors, the script completed successfully and all the programs and configuration files should be in place.\n\nTo run the new graphical environment, log out and log back in as your new user, then run the command \"startx\" to start the graphical environment.\n\n-Luke" 12 80 clear