sudoers file, is one of the most visited articles at, so I’m going to expand a little bit that article, by adding this small tips about sudoers file and sudo command.

Grant root powers

To a single user

Add to the sudoers file

[user]  ALL=(ALL) ALL


john    ALL=(ALL) ALL

To a group of users

The users need to belong to the given group, you can add the user to a group. Then add this to the sudoers file

[group] ALL=(ALL) ALL


%wheel  ALL=(ALL) ALL

Avoid writing sudo every time

If you need to run a lot of programs as root, invoke a shell as root.

sudo bash

Then you can execute all the commands as root, without the need to write sudo each time, when you are finished do not forget to exit from that shell.