LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,019

Rep: Reputation: 63
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
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
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,019

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


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 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


All times are GMT -5. The time now is 06:57 AM.

Main Menu
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