LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Sudo Problem (https://www.linuxquestions.org/questions/linux-general-1/sudo-problem-392932/)

shooters 12-14-2005 08:16 PM

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?

Matir 12-14-2005 09:48 PM

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.

shooters 12-14-2005 10:12 PM

Thanks,

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


All times are GMT -5. The time now is 08:18 AM.