sudoers cleanup
This commit is contained in:
parent
603b54590e
commit
3a3560879e
5
sudoers
5
sudoers
@ -82,10 +82,13 @@ root ALL=(ALL) ALL
|
|||||||
%wheel ALL=(ALL) ALL
|
%wheel ALL=(ALL) ALL
|
||||||
|
|
||||||
## Same thing without a password
|
## 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
|
%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
|
Defaults !tty_tickets
|
||||||
#%wheel ALL=(ALL) NOPASSWD: ALL
|
|
||||||
|
|
||||||
## Uncomment to allow members of group sudo to execute any command
|
## Uncomment to allow members of group sudo to execute any command
|
||||||
# %sudo ALL=(ALL) ALL
|
# %sudo ALL=(ALL) ALL
|
||||||
|
Loading…
Reference in New Issue
Block a user