Bug 937

Summary: visudo tries to use vi even though editor is set to nano
Product: Sudo Reporter: esgwpl
Component: VisudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED INVALID    
Severity: normal    
Priority: low    
Version: 1.9.2   
Hardware: PC   
OS: Linux   

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.