LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 11-05-2009, 08:25 PM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 14.04
Posts: 1,384

Rep: Reputation: 42
sudoers list


How do I put myself in the sudoers list?? Apparently I'm not in it, even on my own laptop!
 
Old 11-05-2009, 08:26 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
You use visudo as root and add yourself.
 
Old 11-05-2009, 08:29 PM   #3
ammorais
Member
 
Registered: Nov 2009
Location: Lisbon, Portugal
Distribution: Gentoo, CentOs, Ubuntu, Debian
Posts: 182

Rep: Reputation: 49
Login as root.

write:
Code:
visudo
edit this lines:

Code:
## Allows people in group wheel to run all commands
%wheel        ALL=(ALL)       ALL
and add yourself to the whell group.

Code:
gpasswd -a myusername whell
Alternativly you can change it to:
Code:
myusername       ALL=(ALL)       ALL
Then you don't need to add yourself to the wheel group
 
Old 11-05-2009, 11:38 PM   #4
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 14.04
Posts: 1,384

Original Poster
Rep: Reputation: 42
Thanks. But once modified as you said: how do I save it? Can't seem to get out, and the man page doesn't offer much help.
 
Old 11-06-2009, 11:20 AM   #5
ammorais
Member
 
Registered: Nov 2009
Location: Lisbon, Portugal
Distribution: Gentoo, CentOs, Ubuntu, Debian
Posts: 182

Rep: Reputation: 49
visudo uses the text editor vi. man vi or man vim.
you can also write vimtutor to learn how to use it.

If you are impatient:
Code:
i - enter the write mode
esc - exit the write mode
esc + :wq - write and exit
or another tutorial:
http://www.eng.hawaii.edu/Tutor/vi.html

Last edited by ammorais; 11-06-2009 at 11:21 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sudoers madwac Linux - Newbie 1 03-10-2007 07:54 PM
sudoers texerasmo Linux - General 3 08-04-2006 10:57 AM
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 06:03 PM
sudoers???? yenonn Slackware 6 02-10-2004 04:09 AM
Sudoers Fonke0412 Linux - Newbie 3 08-10-2003 04:54 PM


All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration