Fedora 14 uses vi by default when one runs visudo. Is there a way to change this to something else?
|
|
|
Adding Additionally, if your sudo package has been built with --with-env-editor, as is the default on some Linux distributions, you can also set the EDITOR environment variable by executing |
|||||||||||||||||||||
|
|
A normal unix program that wants to invoke an editor will run the program whose name is in the
|
|||
|
|
|
The following
From a commandline:
|
|||
|
|
|
These steps let me set the editor to vi for visudo on Ubuntu 12.04, they probably work for most distributions: Issue command:
This opens up the sudoers file in nano. Near the top you will see this line:
Add the following line beneath the above line:
Save the file and exit. Reopen visudo as your default user:
The sudoers file now opens up in VI. |
||||
|
|
|
|
||||
|
|