Adding a user to the sudoers list

Users in the sudoers list may use the command sudo, which allows them to execute a command as root. …

To add a user to the sudoers list, do the following:

As root, "visudo". You are now editing the sudoers list. Using the up/down arrow keys on your keyboard, find this line:

root ALL=(ALL) ALL

Place the cursor on the subsequent line and press "a" ("append") to enter insert mode. Add the following, replacing "user" with the username you wish to add to sudoers:

user ALL=(ALL) ALL

Press the escape key to leave insert mode and return to command mode. When finished, enter ":x" to save the file and quit.

REFERENCES
How to add a user to the sudoers list
ArchWiki: Sudo

Advertisements

About Warren Post

So far: Customer support guy, jungle guide, IT consultant, beach bum, entrepreneur, teacher, diplomat, over-enthusiastic cyclist. Tomorrow: who knows?
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

4 Responses to Adding a user to the sudoers list

  1. anonymous says:

    Anonymous writes:Thanks you so very much for the detailed instruction, especially how to actually append and save and close! Too many people leave that out for us novices!

  2. wpost says:

    Heh, those were the very details that frustrated me the first time!

  3. Pingback: System monitoring with Gkrellm | A maze of twisty little passages

  4. Pingback: Security and stability tuning on Linux | A maze of twisty little passages

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s