From e6cd302f0549f3d1671e1654668e84be5d7320f2 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Wed, 14 May 2008 13:01:06 -0600 Subject: [PATCH] patch from Martin Pitt for debian/postinst, moves the NOPASSWD example later in the file so it is more likely to work, closes: #479616 --- debian/postinst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/postinst b/debian/postinst index 36cdd23..2229c83 100644 --- a/debian/postinst +++ b/debian/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