From: Bdale Garbee Date: Wed, 14 May 2008 19:01:06 +0000 (-0600) Subject: patch from Martin Pitt for debian/postinst, moves the NOPASSWD example later X-Git-Tag: debian/1.6.9p17-1~14 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=e6cd302f0549f3d1671e1654668e84be5d7320f2;p=debian%2Fsudo patch from Martin Pitt for debian/postinst, moves the NOPASSWD example later in the file so it is more likely to work, closes: #479616 --- 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; }