Configuring Sudo

Clint Savage herlo1 at gmail.com
Mon Mar 30 04:00:50 UTC 2009


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




More information about the docs mailing list