LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-05-2008, 02:56 PM   #1
RAFAL
Member
 
Registered: Feb 2006
Location: Warsaw, Poland
Distribution: Archlinux, Debian
Posts: 139

Rep: Reputation: 16
parse error in /etc/sudoers near line -1


Hello,

After I have done some changes in /etc/sudoers file (not directly, but via YaST)

I am not able to use "sudo" anymore because of this command:

Code:
parse error in /etc/sudoers near line -1
I have found a lot of problems like this but none with "line -1"
For me looks strange.

Any ideas how to solve the problem?

Regards
Rafal
 
Old 11-05-2008, 03:39 PM   #2
RAFAL
Member
 
Registered: Feb 2006
Location: Warsaw, Poland
Distribution: Archlinux, Debian
Posts: 139

Original Poster
Rep: Reputation: 16
maybe I should delete /etc/sudoers and let it to be recreated by YaST?
What do you think?
 
Old 11-10-2008, 10:56 AM   #3
RAFAL
Member
 
Registered: Feb 2006
Location: Warsaw, Poland
Distribution: Archlinux, Debian
Posts: 139

Original Poster
Rep: Reputation: 16
my solution

Hi,

Issue can be closed.

because I'm usually lazy ;-) I have used the simplest solution.

Instead of thinking much about possible problem, I just copied sudoers file from other openSUSE installation and overwritten the wrong one.

Afterwards I executed this:

Code:
chmod 0440 /etc/sudoers

...and now it works fine again. I have to add some entries there, but thats fine for me.

I'm still thinking what could get wrong, because I never edit sudoers file directly (via visodo). I only use the option to update the file via YaST2 (openSUSE manager).
I assume it was YaST, who destroyed the file.


cheers
Rafal
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: parse error, unexpected '/' - can anyone see the error in this code? v@ny@ Programming 8 04-03-2010 04:07 PM
/etc/sudoers parse error Alfiow Linux - Newbie 2 11-02-2008 10:05 AM
Parse error: parse error, unexpected '}' in /home/content jouvert Linux - Newbie 3 05-17-2008 06:55 PM
Parse error: parse error, unexpected $ in /home/content/d/o/m/domain/html/addpuppy2.p Scooby-Doo Programming 3 10-25-2007 09:41 AM
NVIDIA...Parse error on line 13 of section Mandrake 9.0 serok Linux - Newbie 2 11-08-2003 10:54 PM


All times are GMT -5. The time now is 05:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration