sudoers list
How do I put myself in the sudoers list?? Apparently I'm not in it, even on my own laptop!
|
You use visudo as root and add yourself.
|
Login as root.
write: Code:
visudo Code:
## Allows people in group wheel to run all commands Code:
gpasswd -a myusername whell Code:
myusername ALL=(ALL) ALL |
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.
|
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 http://www.eng.hawaii.edu/Tutor/vi.html |
All times are GMT -5. The time now is 01:45 AM. |