Configuring Sudo

Clint Savage herlo1 at gmail.com
Mon Mar 30 04:02:23 UTC 2009


On Sun, Mar 29, 2009 at 10:00 PM, Clint Savage <herlo1 at gmail.com> wrote:
> On Sun, Mar 29, 2009 at 9:54 PM, Andrew Ross <anross at redhat.com> wrote:
>> Hi Kushal,
>>>
>>> Btw, why we do need to use visudo than simple vi ?  What is the difference
>>> ?
>>>
>>> Kushal
>>>
>>
>> By default /etc/sudoers is read only.
>>
>> visudo lets you edit and save. vi the same file and you have to force save.
>>
>> /me guesses its just added security....
>>
>
> That's not the only reason.  Try catching an error / typo while just
> using vi/vim.  With visudo, it validates syntax too.
>
> Clint
>

Oh, and if you use visudo, if you set your $EDITOR variable, it
doesn't require vi/vim.

Clint




More information about the fedora-docs-list mailing list