Bug 68605

Summary: visudo fails w/o vim-minimal installed
Product: [Retired] Red Hat Linux Reporter: Chris Ricker <chris.ricker>
Component: sudoAssignee: wdovlrrw <brosenkr>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: high Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-01-27 13:44:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Ricker 2002-07-11 17:27:49 UTC
# visudo
visudo: no editor found (editor path = /bin/vi)
#

Either sudo needs to Require: vim-minimal (which provides /bin/vi) or visudo
needs to be changed to use `which vi` to locate vi (since it might be /bin/vi,
or it might be a shell alias for /usr/bin/vim, depending on if vim-minimal or
vim-enhanced is used)

Comment 1 Bill Nottingham 2002-07-12 04:04:20 UTC
visudo uses the defined PATH_VI from the system headers as the default, and
should (afaik) honor the EDITOR environment variables for alternate editors.

Comment 2 Chris Ricker 2002-07-12 05:25:58 UTC
It does honor EDITOR (though not VISUAL) if it's set; it's not set by default
for root on RH though

Comment 3 Chris Ricker 2002-08-24 17:01:32 UTC
still true w/ beta5

Comment 4 Karsten Hopp 2004-01-27 13:44:15 UTC
it took some time, but is finally fixed in Fedora Core 2 (development)