Pages

Howto Add a User to Sudoers List On Ubuntu

Believe me or not i am replying this, howto add a user to sudoers list on Ubuntu, question every day so after sending my last reply to this question here is the blog post to stop getting this question as an e-mail :) Like my all blog posts this is also verified me on Ubuntu Karmic, PClinuxOS 2009.2.

Open a terminal (alt+f2 gnome-terminal , use a dropdown terminal, whatever you want.) and give this command as ROOT :

$su -
Enter your root password (or your username's password on some distros)
#visudo

Now use your Up/Down arrows (you may prefer PgUp and PgDn keys) and navigate to this line :

root ALL=(ALL) ALL

Under that line add this line (DO NOT FORGET TO CHANGE "user" part with your username!) :

user ALL=(ALL) ALL

You can use Shift + Insert to paste.
To save, write :w (hit enter of course) to save.To exit, write :quit and hit enter.I am poor at vi/vim or whatever you call that :)
You can find the sample screenshot of sudoers file (the part we have edited) at the beginning of my blog post.
For More Check Related Posts :


Preview on Feedage: pc-medicines Add to My Yahoo! Add to Google! Add to AOL! Add to MSN
Subscribe in NewsGator Online Add to Netvibes Subscribe in Pakeflakes Subscribe in Bloglines Add to Alesti RSS Reader
Add to Feedage.com Groups Add to Windows Live iPing-it Add to Feedage RSS Alerts Add To Fwicki
Add to Spoken to You

No comments:

Post a Comment