Have I broken sudo?

Status
Not open for further replies.

phreak0ut

The Thread Killer >:)
I followed the method to add a user to the sudo group as mentioned in fedorasolved.org, but when I sudo with a command, I'm getting the error:
>>> sudoers file: syntax error, line 90 <<<
Line 90 is a comment line in the file. When I try to remove my name from the file which is at the end and try to save it, I'm getting the error shown in the screenshot. How do I correct it?

*img528.imageshack.us/img528/243/screenshotoh5.th.png
 

Sykora

I see right through you.
The error you get in the screenshot is pretty simple. You're trying to save a read only file. I don't know how to fix it in gedit, but using visudo (Like it says in the comment there.) just give

Code:
:w!

At the vim command line after you've changed whatever you want to change.

Otherwise, add write permissions to the file, change it, then remove the write permissions. If someone knows gedit better, help me out.

Once you've done that, post your /etc/sudoers file.
 

gary4gar

GaurishSharma.com
infra_red_dude said:
As a matter of fact, the sudoers file should always be edited via the "visudo" command.
true...its mentined on fedorasolved, i think you missed it:)
 
Status
Not open for further replies.
Top Bottom