passwordless sudo

Mike Williams dmikewilliams at gmail.com
Wed Nov 30 20:32:52 UTC 2011


On Wed, Nov 30, 2011 at 12:36 PM, Marko Vojinovic <vvmarko at gmail.com> wrote:
> Wouldn't this actually enable passwordless sudo for all members of the wheel
> group, rather than just for one user?
>
> What would the config look like if the OP wants to be both a member of the
> wheel group, and have a paswordless sudo config *only* for himself?

Just use the username of the user instead of %wheel

mike    ALL=(ALL)   NOPASSWD: ALL

Adding a user to the wheel group is a separate issue.  This can be
done via the user manager gui, or by editing /etc/group.  As far as
the sudoers file goes, all settings for wheel are commented out by
default

Not sure if there are other reasons to add a user to the wheel group.
Don't think there is any other use for the wheel group. Perhaps
someone else who knows can respond to that issue.

Mike


More information about the users mailing list