dh_fixperms smashing perms, force them back after it runs
[debian/sudo] / debian / sudo.postinst
index c4f948220a7a08d7916094fa1b9e0c0a70a4f6e6..01079185389f659c005d312154edfccaab5259f5 100644 (file)
@@ -23,7 +23,9 @@ if ( ! -f "/etc/sudoers") {
          "# 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=(ALL) ALL\n";
+         "%sudo ALL=(ALL) ALL\n",
+         "#\n",
+         "#includedir /etc/sudoers.d\n";
        close SUDOERS;
 
 }
@@ -35,7 +37,7 @@ system ('chmod 440 /etc/sudoers');
 # must do a remove first to un-do the "bad" links created by previous version
 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 start 75 2 3 4 5 . >/dev/null');
 
 # make sure we have a sudo group