How to add a user to the sudoers list

How to add a user to the sudoers list? Beleive it or not, this is a fairly common question and in all reality the answer is quite simple. Adding a user to the sudoers list on a fully installed Linux system such as Debian is only possible via the command visudo. Users in the sudoers list are allowed the privileges to run commands and open files as the root user. In the following quick tutorial, we will show you how adding a new sudoer is quickly done.

How to add a user to the sudoers list:

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

root ALL=(ALL) ALL

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

user ALL=(ALL) ALL

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

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

Ref:http://www.pendrivelinux.com/how-to-add-a-user-to-the-sudoers-list/

Advertisements
Leave a comment

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

%d bloggers like this: