From 5632ace7cea8c2121c885d12f610aa889e25c8c1 Mon Sep 17 00:00:00 2001 From: tiyn Date: Sun, 29 Oct 2023 02:11:08 +0100 Subject: [PATCH] changed sudo commands without password check --- larbs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/larbs.sh b/larbs.sh index ef64ed5..1470123 100644 --- a/larbs.sh +++ b/larbs.sh @@ -225,7 +225,7 @@ pkgfile -u # Allow wheel users to sudo with password and allow several system commands # (like `shutdown` to run without password). echo "%wheel ALL=(ALL:ALL) ALL" >/etc/sudoers.d/00-larbs-wheel-can-sudo -echo "%wheel ALL=(ALL:ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/systemctl suspend,/usr/bin/wifi-menu,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Syyu,/usr/bin/pacman -Syyu --noconfirm,/usr/bin/loadkeys,/usr/bin/pacman -Syyuw --noconfirm,/usr/bin/pacman -S -u -y --config /etc/pacman.conf --,/usr/bin/pacman -S -y -u --config /etc/pacman.conf --" >/etc/sudoers.d/01-larbs-cmds-without-password +echo "%wheel ALL=(ALL:ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/poweroff,/usr/bin/reboot,/usr/bin/systemctl suspend,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Qi,/usr/bin/pacman -Qq,/usr/bin/pacman -Qqe,/usr/bin/pacman -Rns,/usr/bin/pacman -S,/usr/bin/pacman -Si,/usr/bin/pacman -Slq,/usr/bin/pacman -Sy,/usr/bin/pacman -Syu,/usr/bin/loadkeys" >/etc/sudoers.d/01-larbs-cmds-without-password echo "Defaults editor=/usr/bin/nvim" >/etc/sudoers.d/02-larbs-visudo-editor # Last message! Install complete!