PDA

View Full Version : [ubuntu] Visudo acting strangely


Bunnykun
July 5th, 2008, 05:45 PM
I am having difficulty editing my sudoers.

I enter sudo visudo, and I see the sudoers file as normal. However, I can't edit it. key presses don't respond normally, meaning sometimes it the text will appears but usually does not. Backspace does not work, the only way I can delete text is by pressing "delete," and it seems only if I'm at the end of the line, not in the middle.

pressing ctrl+X does not prompt a syntax check and request to save or whatnot, as I understand it should do. I can only get out of visudo if I use ctrl+C, then type ":quit!" I believe that the last time I used visudo, I running Gutsy. I've since upgraded to Hardy.

Any idea what broke? or what I'm doing wrong?

Dr Small
July 5th, 2008, 06:19 PM
Apparently visudo is opening in vi

Bunnykun
July 5th, 2008, 06:22 PM
What does that mean, and how do I prevent it?

Fass
July 5th, 2008, 06:30 PM
http://ubuntuforums.org/showthread.php?t=850555

Changing which editor visudo uses was just discussed in that thread and tinivole posted a nice guide.