esSJae's Virtualization Blog

Virtualization and other IT topics

Add User to sudoers list

Posted by essjae on November 10, 2012

How to add a user to the sudoers list:

    1. Open a Root Terminal and type visudo (to access and edit the list)
    2. Using the up/down arrows, navigate to the bottom of the sudoers file that is now displayed in the terminal
    3. Just under the line that looks like the following:

root ALL=(ALL) ALL

    1. Add the following (replacing user with your actual username):

user ALL=(ALL) ALL

  1. Now press Ctrl+X and press Y when promted to save

That’s it, your new user now has root privileges!

Example Sudoers Screenshot:

Adding a new sudoer


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: