On Fri, Dec 30, 2011 at 10:13 PM, Don Juan donjuansjiz@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