From 7a920628039c6a87504ed39b15371e3b6e649d6e Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Wed, 15 Jul 2009 01:10:33 -0600 Subject: [PATCH] fix two long-standing bugs in packaging --- debian/changelog | 2 ++ debian/sudo-ldap.postinst | 6 +++--- debian/sudo.postinst | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index bbd1665..5705482 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ sudo (1.7.2-1) UNRELEASED; urgency=low * new upstream version, closes: #537103 + * improve initial sudoers commented-out example, closes: #536220 + * fix update-rc.d call to create correct sudo-ldap link, closes: #387880 -- Bdale Garbee Wed, 15 Jul 2009 00:52:27 -0600 diff --git a/debian/sudo-ldap.postinst b/debian/sudo-ldap.postinst index b89a8a5..d7184d5 100644 --- a/debian/sudo-ldap.postinst +++ b/debian/sudo-ldap.postinst @@ -23,7 +23,7 @@ if ( ! -f "/etc/sudoers") { "# 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"; + "# %sudo ALL=(ALL) NOPASSWD: ALL\n"; close SUDOERS; } @@ -32,10 +32,10 @@ if ( ! -f "/etc/sudoers") { system ('chown root:root /etc/sudoers'); system ('chmod 440 /etc/sudoers'); -# must do a remove first to un-do the "bad" links created by previous version +# do a remove first to un-do "bad" links created by previous versions system ('update-rc.d -f sudo remove >/dev/null 2>&1'); -system ('update-rc.d sudo start 75 S . >/dev/null'); +system ('update-rc.d sudo-ldap start 75 S . >/dev/null'); # make sure we have a sudo group diff --git a/debian/sudo.postinst b/debian/sudo.postinst index 2229c83..1494ccd 100644 --- a/debian/sudo.postinst +++ b/debian/sudo.postinst @@ -23,7 +23,7 @@ if ( ! -f "/etc/sudoers") { "# 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"; + "# %sudo ALL=(ALL) NOPASSWD: ALL\n"; close SUDOERS; } -- 2.47.2