LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   sudoers list (https://www.linuxquestions.org/questions/fedora-35/sudoers-list-767182/)

Pedroski 11-05-2009 07:25 PM

sudoers list
 
How do I put myself in the sudoers list?? Apparently I'm not in it, even on my own laptop!

pljvaldez 11-05-2009 07:26 PM

You use visudo as root and add yourself.

ammorais 11-05-2009 07:29 PM

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

Pedroski 11-05-2009 10:38 PM

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.

ammorais 11-06-2009 10:20 AM

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


All times are GMT -5. The time now is 01:45 AM.