LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 05-22-2010, 04:22 AM   #1
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
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
 
Old 05-22-2010, 04:40 AM   #2
fruttenboel
Member
 
Registered: Jul 2008
Location: Tilburg NL
Distribution: Slackware 14.2 ciurrent, kernel 3.18.11
Posts: 270

Rep: Reputation: 48
Quote:
Originally Posted by cola View Post
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
 
Old 05-22-2010, 05:13 AM   #3
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Original Poster
Rep: Reputation: 65
It's fixed now.
I had to use recovery mode to chmod 0440 /etc/sudoers.
 
  


Reply



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
[SOLVED] What's the difference between chmod 0755 file and chmod 755 file? cola Linux - Newbie 6 04-19-2010 04:29 PM
Apache: difference between chmod 644 and chmod 666 and chmod 600 for output/txt/dat? frenchn00b Programming 6 04-22-2009 01:10 PM
not in the sudoers file? underworld288 Slackware 3 06-18-2007 12:48 AM
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 05:03 PM
The Sudoers File Rubicone Linux - Security 0 05-02-2002 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 12:12 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
Open Source Consulting | Domain Registration