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.)

-- 
%sudo ALL=NOPASSWD: ALL seems to have no effect in sudoers
https://bugs.launchpad.net/bugs/131399
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to