visudo: no editor found(editor path = /usr/bin)

On a out of the box install of Fedora 16 with KDE, attempting to run visudo results in an error.

visudo: no editor found (editor path = /usr/bin/)

Solution 1: Create symbolic link

ln -s /bin/vi /usr/bin/vi

Solution 2: Create default editor

Change to root user, and manually edit sudoers file
sudo su -

nano /etc/sudoers

insert lines

Defaults env_editor,editor=/usr/bin/vi:/usr/bin/nano:/usr/bin/vim

This will use the system variable $env_editor, if it doesn’t exist it will use vi or nano or vim

About spuder
spuder is a "super computer" support engineer by day, and tinkerer / hobbyist by night.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: