Re: Cannot save changes to sudoers



On Mon, 27 Mar 2006 14:33:12 -0500, Bill Marcum <bmarcum@xxxxxxxxx> wrote:


On 27 Mar 2006 09:41:26 -0800, Nick.Name
<JLuckey@xxxxxxxxxxx> wrote:
Linux Newbie just installed Fedora Core 5 for i386. After editing
sudoers in gedit it fails to save w/ error msg:
Could not save file /etc/sudoers
You are trying to save this file on a read-only disk. Please check
that you have typed the location correctly and try again.

I am logged-in as root. I have created other files in the /etc
directory successfully.

Questions:
1. Why won't it let me save the edited sudoers? (I'm under the
impression that as root I have authority to do anything)

You should use the command "visudo" to edit /etc/sudoers.

bull***.

visudo is just another editor. there is nothing in the file system,
or anywhere else that restricts editing /etc/sudoers to visudo.
If you know what you're doing, there's nothing wrong with editing
sudoers with your favorite editor. Just as there's nothing wrong
with editing a C++ program with an editor other than nedit.

"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.

.


Quantcast