Comment 18 for bug 131399

Revision history for this message
Stefan Daniel Schwarz (Wolfram Ravenwolf) (stefandanielschwarz) wrote :

There's still a problem here:

Since the sudo package upgrade won't update the sudoers file, to fix it, one has to execute a command like this:

sudo su -c "mv /etc/sudoers /etc/sudoers.bak && dpkg-reconfigure sudo && sed -i~ s/#\ %/%/ /etc/sudoers && adduser $USER sudo"

This creates a backup and then recreates the sudoers file - so now it's fixed. BUT:

Since the admin line is added by the installer, it will be missing from the fixed file. And on a new installation (Intrepid? 8.04.1?) where the fixed file may be the base, if the installer still adds the admin line after the sudo line, it will again be broken.

Just wanted to point that out - maybe we can find an elegant solution?

(Personally, the way I did it before the sudo group was used in the sudoers file, I simply changed "ALL=(ALL)" to "ALL=NOPASSWD:" on the %admin line. No need for the %sudo line.)