From 3a3560879ee3bb7c744e0c4944e9faa6211aad0d Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 5 Oct 2017 00:23:36 -0700 Subject: [PATCH] sudoers cleanup --- sudoers | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sudoers b/sudoers index 841d0c1..d3a0059 100644 --- a/sudoers +++ b/sudoers @@ -82,10 +82,13 @@ root ALL=(ALL) ALL %wheel ALL=(ALL) ALL ## Same thing without a password + #%wheel ALL=(ALL) NOPASSWD: ALL + +##Here I give wheel users the ability to run core non-harmless commands without a password. %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 +#This keeps you from needing to reinsert your passwords in each different terminal a wheel user uses sudo in. Defaults !tty_tickets - #%wheel ALL=(ALL) NOPASSWD: ALL ## Uncomment to allow members of group sudo to execute any command # %sudo ALL=(ALL) ALL