From fe447a5e2faa6f32072fec596a8f6031b76dc5ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Wed, 8 Mar 2023 17:31:13 +0300 Subject: Change no-password sudo commands --- boobs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boobs.sh b/boobs.sh index a56df17..96c89fb 100755 --- a/boobs.sh +++ b/boobs.sh @@ -258,7 +258,7 @@ putdotfiles "$dotfilesrepo" "$repobranch" # 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-boobs-wheel-can-sudo -echo "%wheel ALL=(ALL:ALL) NOPASSWD: /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-boobs-cmds-without-password +echo "%wheel ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy,/usr/bin/pacman -Syy,/usr/bin/pacman -Syuw,/usr/bin/pacman -Syyuw,/usr/bin/pacman -Syuw --noconfirm,/usr/bin/pacman -Syyuw --noconfirm" >/etc/sudoers.d/01-boobs-cmds-without-password echo "Defaults editor=/usr/bin/nvim" >/etc/sudoers.d/02-boobs-visudo-editor # Last message! Install complete! -- cgit v1.2.3