Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 14-10-2007, 04:28 PM   #1 (permalink)
The Thread Killer >:)
 
phreak0ut's Avatar
 
Join Date: Apr 2006
Location: Bangalore
Posts: 1,185
Question Have I broken sudo?


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:
Quote:
>>> 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?

__________________
Want to make this world a better place? Then, start seeding and don't be just a leecher :)
phreak0ut is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 14-10-2007, 04:47 PM   #2 (permalink)
I see right through you.
 
Sykora's Avatar
 
Join Date: Sep 2005
Location: Chennai
Posts: 597
Default Re: Have I broken sudo?

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.
__________________
I didn't make the world, I only try to live in it.
http://lucentbeing.com
-- Sykora --
Sykora is offline  
Old 14-10-2007, 07:50 PM   #3 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,173
Default Re: Have I broken sudo?

As a matter of fact, the sudoers file should always be edited via the "visudo" command.
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."

http://phoenix-ani.blogspot.com
infra_red_dude is offline  
Old 14-10-2007, 08:08 PM   #4 (permalink)
GaurishSharma.com
 
gary4gar's Avatar
 
Join Date: May 2005
Location: Jaipur
Posts: 4,116
Default Re: Have I broken sudo?

Quote:
Originally Posted by infra_red_dude
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
gary4gar is offline  
Old 14-10-2007, 08:31 PM   #5 (permalink)
The Thread Killer >:)
 
phreak0ut's Avatar
 
Join Date: Apr 2006
Location: Bangalore
Posts: 1,185
Default Re: Have I broken sudo?

Yeah, I missed the 'visuo' part somehow My bad. Thanks guys
__________________
Want to make this world a better place? Then, start seeding and don't be just a leecher :)
phreak0ut is offline  
Old 16-10-2007, 02:50 PM   #6 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,173
Default Re: Have I broken sudo?

^^^ What??!!!
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."

http://phoenix-ani.blogspot.com
infra_red_dude is offline  
Old 16-10-2007, 03:05 PM   #7 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: Have I broken sudo?

Maybe he's asking phreak0utt to try another distro cause he broke it
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu-sudo can insult you!!! praka123 Open Source 13 24-09-2007 02:59 PM
smart removed sudo!!!! HELP!!!!! HELP!!!! HELP!!!!! HELP!!!!!!! The Unknown Open Source 6 05-08-2007 09:58 PM
Enabling 'SUDO' anantkhaitan Open Source 2 17-04-2007 04:42 PM
sudo -s ravix Open Source 7 02-07-2006 12:40 AM
cpu broken pin kiran_aryan CPU / Motherboards 14 22-12-2004 11:00 AM

 
Latest Threads
- by Sujeet
- by soumya
- by clmlbx
- by Charan

Advertisement




All times are GMT +5.5. The time now is 01:04 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2