Bug 68605 - visudo fails w/o vim-minimal installed
visudo fails w/o vim-minimal installed
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: sudo (Show other bugs)
8.0
i386 Linux
medium Severity high
: ---
: ---
Assigned To: wdovlrrw
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-07-11 13:27 EDT by Chris Ricker
Modified: 2007-04-18 12:44 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-01-27 08:44:15 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Chris Ricker 2002-07-11 13:27:49 EDT
# 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 00:04:20 EDT
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 01:25:58 EDT
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 13:01:32 EDT
still true w/ beta5
Comment 4 Karsten Hopp 2004-01-27 08:44:15 EST
it took some time, but is finally fixed in Fedora Core 2 (development)

Note You need to log in before you can comment on or make changes to this bug.