[sudo-users] per-user editor for visudo

Tony Fondo tony_fondo at nwrdc.fsu.edu
Sat Jul 30 20:15:00 MDT 2016

Makes sense, wasn't thinking about that. I thought there were options that would read in  different env settings though, I guess not?

Tony Vincent Fondo, ITIL(r), CISSP(r)
Information Security Manager
Northwest Regional Data Center
Office  (850) 645-3529<tel:(850)%20245-3529>
Cell      (850) 766-7836<tel:(850)%20245-3529>


On Jul 30, 2016, at 5:14 PM, Todd C. Miller <Todd.Miller at courtesan.com<mailto:Todd.Miller at courtesan.com>> wrote:

On Sat, 30 Jul 2016 18:38:38 +0200, balducci at units.it<mailto:balducci at units.it> wrote:

Instead, I find that the editor option in Defaults:balducci is
silently ignored, without any warning/error message from visudo.

In the end: it looks to me that the only way a user has to set an
editor different from the default is via the EDITOR/VISUAL
environment variable (when allowed as per above).

Is this correct? Is there any obvious reason why the editor
option is ignored when in a Defaults:<user> entry?

The reason this doesn't work is that visudo is being run as root
and so the editor Defaults setting will match on root, not the user
running "sudo visudo".

It would be possible for visudo to look at the SUDO_USER environment
variable but it does not currently do that.

- todd
sudo-users mailing list <sudo-users at sudo.ws<mailto:sudo-users at sudo.ws>>
For list information, options, or to unsubscribe, visit:

More information about the sudo-users mailing list