On Fri, 04 Aug 2017 13:36:06 +0100, Richard Kettlewell wrote:
> Roger Bell_West writes:
>> On 2017-08-04, Martin Gregorie wrote:
>
> (about visudo)
>
>>>Despite its name, which implies that it will use vi as its editor, the
>>>Raspbian visudo seems to have been hacked and/or reconfigured to use
>>>nano. At least, that is the case on my RPi.
>>
>> Like any well-written unix program, it will use whatever you've set up
>> as the default editor.
>
> Not exactly; see the man page. It has a built-in list of permitted
> editors.
>
Yes, but see "man sudoers", which says that the "Defaults env_editor"
statement overrides that and causes visudo, less, etc. to use the editor
specified by $EDITOR. This is in the sudoers(5) and sudo(8) manpages for
Sudo 1.8.10p3, which is the version used by Raspbian.
Meanwhile, F25 publishes the same sudoers(5) and sudo(8) manpages are for
sudo 1.6.5 yet its sudo is version 1.8.20p2. This sudoers manpage also
describes the use of "Defaults env_editor" but this is not mentioned in
the sudo manpage.
However, "Defaults env_editor" doesn't work for either sudo 1.8.10p3 or
1.8.20p2.
As I said, I feel a bug report coming on.
--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|