coreos / bugs

Issue tracker for CoreOS Container Linux
https://coreos.com/os/eol/
146 stars 30 forks source link

visudo: no editor found (editor path = /usr/libexec/editor) #2642

Open neale-bpm opened 4 years ago

neale-bpm commented 4 years ago

Issue Report

Bug

Container Linux Version

2247.7.0

Environment

VMware

Expected Behavior

visudo -f /etc/sudoers.d/user1 should edit a file as documented at https://coreos.com/os/docs/latest/adding-users.html#grant-sudo-access doesn't work.

Actual Behavior

Result is visudo: no editor found (editor path = /usr/libexec/editor)

Workaround

export EDITOR=/bin/vi
visudo -f /etc/sudoers.d/user1
ajeddeloh commented 4 years ago

Is this new in 2247.7.0? If so, does it work in older versions?

neale-bpm commented 4 years ago

I've not used it before on previous versions so I don't know. I'd guess it did at some point because someone documented it

ajeddeloh commented 4 years ago

I just tried this on both current alpha and stable and could not reproduce. Can you still reproduce?