DIGIT-ARC read-only archive · snapshot: July 23, 2026

Have I broken sudo?

7 posts · originally from https://geek.digit.in/community/threads/have-i-broken-sudo.70657/

phreak0ut
phreak0ut Original post #1
Oct 14, 2007 at 4:28 PM
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
Sykora #2
Oct 14, 2007 at 4:47 PM
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.
infra_red_dude
Oct 14, 2007 at 7:50 PM
As a matter of fact, the sudoers file should always be edited via the "visudo" command.
gary4gar
Oct 14, 2007 at 8:08 PM
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:)
phreak0ut
Oct 14, 2007 at 8:31 PM
Yeah, I missed the 'visuo' part somehow :D My bad. Thanks guys :D
QwertyManiac
Oct 16, 2007 at 3:05 PM
Maybe he's asking phreak0utt to try another distro cause he broke it :p