Re: Cannot save changes to sudoers



On 2006-03-28, AZ Nomad <aznomad@xxxxxxxxxxxxxx> wrote:

bull***.

visudo is just another editor. there is nothing in the file system,
or anywhere else that restricts editing /etc/sudoers to visudo.

Since we're calling bull***, visudo is not an editor; it calls an
editor after doing some locking, and does some syntax checking after the
editor exits.

If you know what you're doing, there's nothing wrong with editing
sudoers with your favorite editor.

There's nothing wrong with using your favourite editor with visudo.[0]
And, because the syntax of sudoers is nontrivial, and because b0rking it
up can have security implications, it is best to use visudo.

"You are trying to save this file on a read-only disk" is an indication
that the file system is readonly or perhaps a text editor that doesn't
know the difference between a readonly file and a readonly file system.

That was going to be my guess.

--keith

[0] Well, if your favourite editor is not compiled in to visudo, you
might have a problem.

--
kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom
see X- headers for PGP signature information

.


Quantcast