patch from Martin Pitt for debian/postinst, moves the NOPASSWD example later
authorBdale Garbee <bdale@gag.com>
Wed, 14 May 2008 19:01:06 +0000 (13:01 -0600)
committerBdale Garbee <bdale@gag.com>
Wed, 14 May 2008 19:01:06 +0000 (13:01 -0600)
in the file so it is more likely to work, closes: #479616

debian/postinst

index 36cdd235c89e4de80576edfa280def1318d16944..2229c83598147e87584f2aabf3385dc76eda2774 100644 (file)
@@ -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;
 
 }