Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


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

Rep: Reputation: 0
Sudo Problem

I typed:

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

then from root:

chmod 640 /etc/sudoers

>>> 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
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
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
LQ Newbie
Registered: Dec 2005
Distribution: Ubuntu 6.06 (Dapper)
Posts: 18

Original Poster
Rep: Reputation: 0

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


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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:25 PM.

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