From 52080f044393d5cbca81dbb2807b77572bd5825f Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Sat, 28 Mar 2009 06:48:32 -0600 Subject: [PATCH] fix location of NOPASSWD entry in default config file for the sudo-ldap case too, closes: #479616 --- debian/changelog | 2 ++ debian/sudo-ldap.postinst | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 1e715a0..b30bcd1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,8 @@ sudo (1.7.0-1) UNRELEASED; urgency=low * fix ldap config file path for sudo-ldap package, including creating a symlink in postinst and cleaning it up in postrm for the sudo-ldap package, closes: #430826 + * fix NOPASSWD entry location in default config file for the sudo-ldap + instance too, closes: #479616 -- Bdale Garbee Sat, 28 Mar 2009 06:37:55 -0600 diff --git a/debian/sudo-ldap.postinst b/debian/sudo-ldap.postinst index 89cc56c..b89a8a5 100644 --- a/debian/sudo-ldap.postinst +++ b/debian/sudo-ldap.postinst @@ -16,12 +16,14 @@ if ( ! -f "/etc/sudoers") { "#\n", "# See the man page for details on how to write a sudoers file.\n", "#\n\nDefaults\tenv_reset\n\n", - "# Uncomment to allow members of group sudo to not need a password\n", - "# %sudo ALL=NOPASSWD: ALL\n\n", "# Host alias specification\n\n", "# User alias specification\n\n", "# Cmnd alias specification\n\n", - "# User privilege specification\nroot\tALL=(ALL) ALL\n"; + "# User privilege specification\nroot\tALL=(ALL) ALL\n\n", + "# Uncomment to allow members of group sudo to not need a password\n", + "# (Note that later entries override this, so you might need to move\n", + "# it further down)\n", + "# %sudo ALL=NOPASSWD: ALL\n"; close SUDOERS; } -- 2.47.2