From b278cce1e12a7ce9dcd49bfbab7cf2fa7e3b1d35 Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 11 Mar 2020 08:34:06 -0400 Subject: add usage of sudo --- src/etc/logout-manager.conf | 6 +++--- src/etc/sudoers.d/30_logout-manager_sudo | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 src/etc/sudoers.d/30_logout-manager_sudo (limited to 'src/etc') 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 * -- cgit