The following blog post is a running account of how I am setting up privileges on some new machines. The intention of this post is to serve as a quick reference for myself instead of having to read the really long man pages every time I want to make a small change.
This step creates a new group that will have administration members only allowed. Must run this command as root of course.
This step adds the very trusted and privileged user (let’s say in this case bob) to be a member of the administrators group. Again run this as root.
usermod –append -G administrators bob
Then add the following lines
# This is a comment that says the group administrators has full root privileges
%administrators ALL=(ALL) ALL
This is a very simple example but is enough to get started more on this later