Bugzilla – Bug 151938
sudo moronic
Last modified: 2006-03-08 14:42:26 UTC
Sudo, in its default configuration on Beta4, asks for root's password before executing a command. Then it checks if the user has the appropriate privileges defined in /etc/sudoers. This is stupid: when a user knows the root password, the command should just be executed; the user could edit /etc/sudoers, anyway.
The reason is "Defaults targetpw" in the configfile. This was introduced some SUSE releases ago IIRC - but don't ask me for the reason or why it should be useful this way...
My point was that after the user has entered the root password, it makes no sense to deny running the command; the command should just be executed. Maybe this can be simply achieved with the right configuration options in /etc/sudoers.
took me a while to understand what your problem is. I suppose you tried to run sudo with your nis user which is not in group 'users'. The sudoers file allows only members of group 'users' to run commands. Since anyone is allowed to use su if he know the password it should be fine to also allow anyone to use sudo. You need to change '%users' to 'ALL' to achieve that.
How much sense does that make as the default configuration? IMO none; it should not matter in which groups users are that know the root password.
fixed