Kunaljain's Weblog

August 28, 2008

Adding User to “sudoers” File

Filed under: Linux Tips & Tricks,Mac — Kunal Jain @ 13:30

To give a user the ability to use the sudo command you must add them to the sudoers file located in /ect/sudoers

Open the Terminal, Once the Terminal is Open login as root and open the file /etc/sudoers

sudo gedit /etc/sudoers

if you want to use vim you can simply enter the following into the Terminal

sudo visudo

Once you have the sudoers file open, scroll down to the line

root ALL=(ALL) ALL

Add the following line below the root line

user ALL=(ALL) ALL

***Replace “user” with the name of the account you want to give the sudo access***

Save and Close the file. The new user has now been added to the sudoers file and can use the sudo command

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

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

Blog at WordPress.com.

%d bloggers like this: