Re: Question about visudo and info in the Wiki

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



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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux