PDA

View Full Version : Sudo under HD install



clarjon1
03-10-2005, 02:57 PM
Frustrated with not being able to use sudo to get stuff done? Well, don't worry, here is how to get that power back, without re-installing!

1. Log in as root
2. open kwrite or kate
3. open /etc/sudoers (or sudoer or something like that, I cannot remember right now)
4. copy+paste the root entry, then change username to your username.
5. Enjoy using sudo once again!

arkaine23
03-11-2005, 05:00 PM
AFAIK, the only way to edit /etc/sudoers is with

visudo -f /etc/sudoers

Markus
03-11-2005, 10:05 PM
Visudo isn't the only way to edit but it does check the syntax for errors and locks the file while you edit which is nonimportant on a single user desktop. If you want an easier editor than vim you can do: EDITOR=mcedit visudo , or change the default editor with: update-alternatives --config editor . After that just run visudo and mcedit will be used.
For some examples have a look at: man sudoers