Add halt, reboot and shutdown to sudoers

This commit is contained in:
flyingscorpio@arch-desktop 2021-06-11 18:04:47 +02:00
parent 522a9120c2
commit 483e554983
2 changed files with 5 additions and 0 deletions

View file

@ -15,6 +15,8 @@ fileignoreconfig:
- filename: dotfiles/shell/profile
ignore_detectors:
- filename
- filename: dotfiles/sudoers.d/bye
checksum: 04ea980db43af63a701f26ce1ac16594c49a5cc7196fc0958e1c00f73d07274e
- filename: dotfiles/sudoers.d/protonvpn
checksum: 1a86c97a80c2ae3be4d455c4db441d6d2b4d8553784e43646802dd3bf27316ef
- filename: dotfiles/systemd_timers/gitea_backup_rsync.service

3
dotfiles/sudoers.d/bye Normal file
View file

@ -0,0 +1,3 @@
## Use "sudo {shutdown,reboot,halt}" without needing a password.
$USER ALL=(root) NOPASSWD:/usr/bin/reboot,/usr/bin/halt,/usr/bin/shutdown