[arch-general] Question about visudo and info in the Wiki

Karol Blazewicz karol.blazewicz at gmail.com
Fri Dec 30 16:18:38 EST 2011


On Fri, Dec 30, 2011 at 10:13 PM, Don Juan <donjuansjiz at gmail.com> wrote:
> but even as root user I can do it, so wouldn't it not do it under root since
> sudo is not involved?

Not sure what you mean here.

Have you tried restricting the use of EDITOR w/o recompiling sudo:
https://wiki.archlinux.org/index.php/Sudo#Using_visudo

# Defaults specification
# Reset environment by default
Defaults      env_reset
# Set default EDITOR to vim, and do not allow visudo to use EDITOR/VISUAL.
Defaults      editor=/usr/bin/vim, !env_editor


More information about the arch-general mailing list