aboutsummaryrefslogtreecommitdiff
path: root/src/etc
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-03-11 08:34:06 -0400
committerB Stack <bgstack15@gmail.com>2020-03-11 08:34:06 -0400
commitb278cce1e12a7ce9dcd49bfbab7cf2fa7e3b1d35 (patch)
tree8f9359b6f42d8541a4a4f2887319e5caae80b0dc /src/etc
parentadd DRYRUN and bash_completion to lm-helper (diff)
downloadlogout-manager-b278cce1e12a7ce9dcd49bfbab7cf2fa7e3b1d35.tar.gz
logout-manager-b278cce1e12a7ce9dcd49bfbab7cf2fa7e3b1d35.tar.bz2
logout-manager-b278cce1e12a7ce9dcd49bfbab7cf2fa7e3b1d35.zip
add usage of sudo
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