Default /etc/sudoers file overwrites /etc/sudoers.d for 'admin' users
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sudo |
Opinion
|
Undecided
|
Unassigned | ||
sudo (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: sudo
I was trying to make truecrypt to mount encrypted container without asking my user's password after I provided my truecrypt password and found out that I need to modify my 'sudo' configuration. After reading bit more about sudo configuration I found out that custom configuration should be placed in '/etc/sudoers.d' instead of modifying the default '/etc/sudoers' file. I found out that my custom setting did not worked any user who is member of the group 'admin', but worked find for any other user. I found that last line '%admin ALL=(ALL) ALL' in default '/etc/sudoers' file overwrites any setting set in '/etc/sudoers.d'. I fixed it by moving the '#includedir /etc/sudoers.d' to be the last line. I am attaching my patch. I think that this should be fixed in default configuration file because I believe this file will get overwritten during the next 'sudo' upgrade.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: sudo 1.7.2p1-1ubuntu5
ProcVersionSign
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Fri May 14 20:05:14 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: sudo
VisudoCheck: /etc/sudoers: parsed OK
Changed in sudo (Ubuntu): | |
status: | New → Confirmed |
Changed in sudo: | |
status: | New → Opinion |
Can you please check if the problem is still present in the latest version of the package? If not, can you please rework your patch? Thanks.