Bug 937 - visudo tries to use vi even though editor is set to nano
visudo tries to use vi even though editor is set to nano
Status: RESOLVED INVALID
Product: Sudo
Classification: Unclassified
Component: Visudo
1.9.2
PC Linux
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-08-02 20:35 MDT by esgwpl
Modified: 2020-08-03 02:43 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description esgwpl 2020-08-02 20:35:57 MDT
visudo tries to use vi (which is not installed on my system) even though editor is set in sudoers to /usr/bin/nano, weirdly enough it only does this if I pass -f /path/to/alternate/sudoers, it correctly uses nano whenever I want to edit the default /etc/sudoers file. I have these two lines added to my sudoers file:

Defaults      env_reset
Defaults      editor=/usr/bin/nano, !env_editor
Comment 1 esgwpl 2020-08-03 02:42:48 MDT
Never mind this, I should've read the manual more carefully, sorry for the noise.