LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Mint (https://www.linuxquestions.org/questions/linux-mint-84/)
-   -   Can't chmod /etc/sudoers file (https://www.linuxquestions.org/questions/linux-mint-84/cant-chmod-etc-sudoers-file-809437/)

cola 05-22-2010 04:22 AM

Can't chmod /etc/sudoers file
 
Hello,
I have installed linux mint 9.
I edited the /etc/sudoers file doing chmod 777 /etc/sudoers.
Now i can't do sudo chmod 0440 /etc/sudoers.
Code:

sudo: /etc/sudoers is mode 0777, should be 0440
sudo: no valid sudoers sources found, quitting

Code:

-rwxrwxrwx 1 root    root      641 2010-05-22 21:13 sudoers
drwxr-xr-x 2 root    root    4096 2010-04-27 16:43 sudoers.d


fruttenboel 05-22-2010 04:40 AM

Quote:

Originally Posted by cola (Post 3977385)
Hello,
I have installed linux mint 9.
I edited the /etc/sudoers file doing chmod 777 /etc/sudoers.
Now i can't do sudo chmod 0440 /etc/sudoers.
Code:

sudo: /etc/sudoers is mode 0777, should be 0440
sudo: no valid sudoers sources found, quitting

Code:

-rwxrwxrwx 1 root    root      641 2010-05-22 21:13 sudoers
drwxr-xr-x 2 root    root    4096 2010-04-27 16:43 sudoers.d


have u tried as ruut?

if onsoccesfol try to delete the file and then create a new one

cola 05-22-2010 05:13 AM

It's fixed now.
I had to use recovery mode to chmod 0440 /etc/sudoers.


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