From 6d6ae68c2377655fa288155270892509733bd27f Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 5 Jan 2018 11:42:24 +0100 Subject: sudo tweaks: Keep DISPLAY and SSH_AUTH_SOCK env vars. Allows sudo with X11 access + ssh agent forwarding after during sudo calls. --- debian/itzks-systems-common.install | 1 + etc/sudoers.d/itzks-systems-common | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 etc/sudoers.d/itzks-systems-common diff --git a/debian/itzks-systems-common.install b/debian/itzks-systems-common.install index e8c35a8..b99c9e2 100644 --- a/debian/itzks-systems-common.install +++ b/debian/itzks-systems-common.install @@ -7,6 +7,7 @@ etc/firefox-esr/* etc/firefox-esr/ etc/network/* etc/network/ etc/sitesummary/* etc/sitesummary/ etc/standardskriver.cfg etc/ +etc/sudoers.d/itzks-systems-common etc/sudoers.d/ sbin/itzks-systems.do_preseed share/itzks-systems-common/ usr/share/ usr-lib-nagios-plugins/check_fs_ro.sh usr/lib/nagios/plugins/ diff --git a/etc/sudoers.d/itzks-systems-common b/etc/sudoers.d/itzks-systems-common new file mode 100644 index 0000000..c3851a2 --- /dev/null +++ b/etc/sudoers.d/itzks-systems-common @@ -0,0 +1,2 @@ +Defaults env_keep += "SSH_AUTH_SOCK" +Defaults env_keep += "DISPLAY" -- cgit v1.2.3