larbs

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 678cb8d48a65b93fd8f5dcb3de17df72da5b1e13
parent 1e92f296220980c6215ff6cd8863f12f7aa20512
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Mon, 25 Jun 2018 18:21:17 -0400

sudoers now more robust

Diffstat:
Msrc/larbs.sh | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/larbs.sh b/src/larbs.sh @@ -63,7 +63,7 @@ do done dialog --infobox "Preparing the user script..." 4 40 -curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/src/sudoers_tmp > /etc/sudoers +echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers cd /tmp if [ $1 = "devel" ] then curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/devel/src/larbs_user.sh > /tmp/larbs_user.sh; @@ -101,7 +101,8 @@ rmmod pcspkr echo "blacklist pcspkr" > /etc/modprobe.d/nobeep.conf dialog --infobox "Updating sudoers file..." 4 40 -curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/src/sudoers > /etc/sudoers +sed -e "/^%wheel.*ALL$/d" /etc/sudoers +echo "%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,/usr/bin/rc-service NetworkManager restart, /usr/bin/pacman -Syyu --noconfirm" >> /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