Skip to content

Add user to list of sudoers

28. December 2011
$ sudo visudo

Hit the “I” key, to switch the vi editor into INSERT mode
Add user “foo” to the list of sudoers, by adding a new line:

foo ALL=(ALL) ALL

Hit the “ESC” key, to leave the INSERT mode
Hit the “:” key, to switch to “COMMAND” mode

Enter “wq” at the prompt to save and exit – or –
Enter “qa!” at the prompt to exit without saving

:wq
Advertisements

From → System

Leave a Comment

Leave a Reply

Please log in using one of these methods to post your comment:

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

%d bloggers like this: