mirror of
https://github.com/tiyn/larbs.git
synced 2025-04-01 15:07:45 +02:00
added nm restart to no pass commands
This commit is contained in:
parent
5632ace7ce
commit
02674259bc
2
larbs.sh
2
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/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 "%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,/usr/bin/systemctl restart NetworkManager" >/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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user