Hi again,

sorry, that contained a typo. Better patch attached, together with a
more helpful explanation.

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
  * debian/postinst: Put "NOPASSWD" example at the bottom, so that
    uncommenting it will actually work (later entries override former ones).
    Also add a comment to point that out.  This will only apply to new
    installs, though, touching sudoers on upgrades is a no-go. (LP: #131399)

diff -u sudo-1.6.9p10/debian/postinst sudo-1.6.9p10/debian/postinst
--- sudo-1.6.9p10/debian/postinst
+++ sudo-1.6.9p10/debian/postinst
@@ -16,12 +16,14 @@
 	  "#\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;
 
 }

Attachment: signature.asc
Description: Digital signature

Reply via email to