"visudo" is completely unusable (/etc/sudoers can only be editted with an external text editor)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sudo (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt |
Bug Description
Binary package hint: sudo
Hi, I can't use sudo visudo at all!
Known problems:
a) It can't close. not with Esc, not with Alt+x, not with Ctrl+Alt+C...
b) backspace isn't backspace
c) on starting a new line, the first character isn't printed.
d) navigation through the file is messed up.
e) delete is the equivalent of cutting the entire line.
f) it is completely unusable to the point where I was forced to edit it in nano.
Information you ask for below:
1)
Description: Ubuntu hardy (development branch)
Release: 8.04
2)
sudo:
Installed: 1.6.9p10-1ubuntu3
Candidate: 1.6.9p10-1ubuntu3
Version table:
*** 1.6.9p10-1ubuntu3 0
500 http://
100 /var/lib/
3)
I expect the program visudo to act like nano (like what it did in Gutsy).
4)
A complete mess in the user input. Completely unusable. I can't type in a single line with it.
Let alone closing the app once I've given up trying to battle it.
ProblemType: Bug
Architecture: i386
Date: Wed Mar 26 21:08:27 2008
DistroRelease: Ubuntu 8.04
NonfreeKernelMo
Package: sudo 1.6.9p10-1ubuntu3
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
PATH=/
LANG=en_GB.UTF-8
SourcePackage: sudo
Uname: Linux 2.6.24-12-generic i686
(I'm assuming this isn't a prank about vi)
I'm afraid this is the direct result of bug #388659, which means that visudo will now use vi by default. Vi is an editor with a rather different model of editing.
If you want to use nano, set your $EDITOR variable (eg, export EDITOR=nano), and then either use sudo -E to run visudo, or remove env_reset from sudoers.
I'm closing this as invalid, because it seems that it is actually the correct, documented behaviour of visudo (there is, after all, a reason for it to have that name). Discussions about changing this probably need to take place elsewhere.