CentOS 6: Install sudo and setup sudoers to use wheel group

Versions

  1. CentOS 6.5

Install

Note
must be logged in as superuser

Configure

  1. Add write access to /etc/sudoers before edit:

  2. Edit /etc/sudoers and uncomment this line:

  3. Remove write access otherwise sudo won’t run:

+ NOTE: user must have primary group as wheel to sudo. See CentOS 6: Change existing user group

One thought on “CentOS 6: Install sudo and setup sudoers to use wheel group

  1. liquidat

    You should not change the rights of /etc/sudoers – instead, use the program visudo. It takes care of the rights, and makes sanity checks to ensure that sudoers is not screwed up.

    Reply

Leave a Reply to liquidat Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">