Update sudo config

This commit is contained in:
ItsDrike 2021-07-27 01:36:35 +02:00
parent 672e52d4b1
commit 0acd5ecc77
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD
2 changed files with 8 additions and 1 deletions

View file

@ -66,9 +66,12 @@
## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
Defaults log_output
Defaults!/usr/bin/sudoreplay !log_output
# Defaults!/usr/local/bin/sudoreplay !log_output
Defaults!/usr/local/bin/sudoreplay !log_output
Defaults!REBOOT !log_output
# Add some fine insults
Defaults insults
##
## Runas alias specification
##

View file

@ -0,0 +1,4 @@
ALL ALL=(ALL) NOPASSWD: /sbin/poweroff
ALL ALL=(ALL) NOPASSWD: /sbin/shutdown
ALL ALL=(ALL) NOPASSWD: /sbin/reboot