aboutsummaryrefslogtreecommitdiff
path: root/src/etc
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/logout-manager.conf6
-rw-r--r--src/etc/sudoers.d/30_logout-manager_sudo3
2 files changed, 6 insertions, 3 deletions
diff --git a/src/etc/logout-manager.conf b/src/etc/logout-manager.conf
index c37dfdf..51b86d1 100644
--- a/src/etc/logout-manager.conf
+++ b/src/etc/logout-manager.conf
@@ -1,9 +1,9 @@
[logout-manager]
-hibernate_command="/usr/libexec/logout-manager/lm-helper hibernate"
lock_command="/usr/libexec/logout-manager/lm-helper lock"
logout_command="/usr/libexec/logout-manager/lm-helper logout"
-reboot_command="/usr/libexec/logout-manager/lm-helper reboot"
-shutdown_command="/usr/libexec/logout-manager/lm-helper shutdown"
+hibernate_command="sudo /usr/libexec/logout-manager/lm-helper hibernate"
+reboot_command="sudo /usr/libexec/logout-manager/lm-helper reboot"
+shutdown_command="sudo /usr/libexec/logout-manager/lm-helper shutdown"
[icons]
size = 24
diff --git a/src/etc/sudoers.d/30_logout-manager_sudo b/src/etc/sudoers.d/30_logout-manager_sudo
new file mode 100644
index 0000000..ba621eb
--- /dev/null
+++ b/src/etc/sudoers.d/30_logout-manager_sudo
@@ -0,0 +1,3 @@
+# File: /etc/sudoers.d/30_logout-manager_sudo
+Defaults env_keep += "DRYRUN VERBOSE"
+ALL ALL = (root) NOPASSWD: /usr/libexec/logout-manager/lm-helper *
bgstack15