[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [help-a-newb] Why nano (or was it pico) instead of vi for visudo? (was question about adduser)

On Sun, Mar 20, 2011 at 8:30 PM, Joel Rees <joel.rees@gmail.com> wrote:

It's nano and the reason that nano's called by visudo (paradoxically)
is that visudo calls "/usr/bin/editor" and the alternatives system
maps it to "/usr/bin/nano".

You can run visudo with "EDITOR=vi visudo" if you just want vi in this instance.

Or you can run "update-alternatives --config editor" to point
"/usr/bin/editor" to "/usr/bin/vi".

Reply to: