LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 12-14-2005, 09:16 PM   #1
shooters
LQ Newbie
 
Registered: Dec 2005
Distribution: Ubuntu 6.06 (Dapper)
Posts: 18

Rep: Reputation: 0
Sudo Problem


I typed:

sudo
sudo: /etc/sudoers is mode 0440, should be 0640

then from root:

chmod 640 /etc/sudoers
sudo


>>> sudoers file: syntax error, line 34 <<<
>>> sudoers file: syntax error, line 35 <<<
>>> sudoers file: syntax error, line 36 <<<
sudo: parse error in /etc/sudoers near line 34


Any idea?
 
Old 12-14-2005, 10:48 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Without knowing the contents of your sudoers file (especially lines 34-36), it is hard to tell you. Have you been using visudo to edit sudoers? It is supposed to check syntax for you when you finish editing.
 
Old 12-14-2005, 11:12 PM   #3
shooters
LQ Newbie
 
Registered: Dec 2005
Distribution: Ubuntu 6.06 (Dapper)
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks,

SMB4K had written some lines in sudoers without me knowing... I removed those lines and it works fine...
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 04:20 PM
sudo permissions problem cuto19 Ubuntu 8 12-01-2005 12:50 AM
Problem with sudo SwannAnderson Linux - Newbie 5 10-03-2005 08:10 PM
sudo problem drigz Linux - Software 4 06-21-2004 04:46 PM
Problem with sudo punx120 Linux - Software 0 05-08-2004 11:43 AM


All times are GMT -5. The time now is 01:59 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration