http://www.xkcd.com/c149.html
- - - - - -
-
-If you choose to run with the RAMRUN option set in /etc/default/rcS, you may
-grow weary of being lectured after each reboot. If so, adding 'lecture never'
-to sudoers may make you happier. See the sudoers(5) man page for more info.
+sudo (1.7.2p7-2) UNRELEASED; urgency=low
+
+ * handle transition of /var/run/sudo to /var/lib/sudo better, to avoid
+ re-lecturing existing users, and to clean up after ourselves on upgrade,
+ and remove the RAMRUN section from README.Debian since the new state dir
+ should fix the original problem, closes: #585514
+
+ -- Bdale Garbee <bdale@gag.com> Thu, 10 Jun 2010 15:42:14 -0600
+
sudo (1.7.2p7-1) unstable; urgency=high
* new upstream release with security fix for secure path (CVE-2010-1646),
}
+# handle state directory transition from /var/run/sudo to /var/lib/sudo,
+# moving any existing content over to avoid re-lecturing existing users
+if ( -d "/var/run/sudo") {
+ system ('mkdir -p /var/lib/sudo');
+ system ('mv /var/run/sudo/* /var/lib/sudo/');
+ system ('rmdir /var/run/sudo');
+}
+
# make sure sudoers has the correct permissions and owner/group
system ('chown root:root /etc/sudoers');
system ('chmod 440 /etc/sudoers');
}
+# handle state directory transition from /var/run/sudo to /var/lib/sudo,
+# moving any existing content over to avoid re-lecturing existing users
+if ( -d "/var/run/sudo") {
+ system ('mkdir -p /var/lib/sudo');
+ system ('mv /var/run/sudo/* /var/lib/sudo/');
+ system ('rmdir /var/run/sudo');
+}
+
# make sure sudoers has the correct permissions and owner/group
system ('chown root:root /etc/sudoers');
system ('chmod 440 /etc/sudoers');