[juneau-lug] Re: visudo

  • From: "Myron Davis" <myrond@xxxxxxxxxxx>
  • To: juneau-lug@xxxxxxxxxxxxx
  • Date: Sun, 1 Feb 2004 14:13:23 -0900 (AKST)

> On Sat, 31 Jan 2004 19:30:47 -0900

<snip>

> Chuck, you're right - all visudo does (and vipw, or vigroup) is lock that
> file down when it is being edited.  Otherwise it is straight vi.  There
> are no special vi modules loaded to check or highlight syntax, etc.  Which
> is too bad, because IMHO that would be very useful.
>

<snip>

It actually does a little more then that, try running visudo, then
modifying the sudo file and making a error, it will syntax check the
/etc/sudoers, i.e.

>>> sudoers file: syntax error, line 20 <<<
What now?

-Myron

------------------------------------
This is the Juneau-LUG mailing list.
To unsubscribe, send an e-mail to juneau-lug-request@xxxxxxxxxxxxx with the 
word unsubscribe in the subject header.

Other related posts: