summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-05 11:42:24 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-05 11:42:24 +0100
commit6d6ae68c2377655fa288155270892509733bd27f (patch)
treec7eedcc41cc80e267f8c8d947d6f9475993455c6
parenta8e67053dca4ed953262d5a7ea494fb1ea0efdf2 (diff)
downloaditzks-systems-6d6ae68c2377655fa288155270892509733bd27f.tar.gz
itzks-systems-6d6ae68c2377655fa288155270892509733bd27f.tar.bz2
itzks-systems-6d6ae68c2377655fa288155270892509733bd27f.zip
sudo tweaks: Keep DISPLAY and SSH_AUTH_SOCK env vars. Allows sudo with X11 access + ssh agent forwarding after during sudo calls.
-rw-r--r--debian/itzks-systems-common.install1
-rw-r--r--etc/sudoers.d/itzks-systems-common2
2 files changed, 3 insertions, 0 deletions
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"