LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2009, 11:09 PM   #1
ben44b
Member
 
Registered: Oct 2006
Distribution: Ubuntu
Posts: 80

Rep: Reputation: 22
sudo: /etc/sudoers is mode 0600, should be 044


Greetings,

I diddled with my /etc/sudoers file and now I can't do anything with sudo.

Every time I try, I get the subject line: /etc/sudoers is mode 0600, should be 044.

Any thoughts?

Thanx
 
Old 06-11-2009, 11:11 PM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
How did you diddle with it, what exactly did you do to it? If you can't remember, try
Code:
history|grep sudo
and give us the relevant commands.
 
Old 06-12-2009, 09:14 PM   #3
ben44b
Member
 
Registered: Oct 2006
Distribution: Ubuntu
Posts: 80

Original Poster
Rep: Reputation: 22
/etc/sudoers

Thanks for your help.

For output, I got:

Code:
274  man visudo
  275  sudo visudo
  276  sudo thunar
  278  sudo EDITOR=/usr/bin/gedit visudo
  279  sudo gedit=/usr/bin/gedit visudo
  282  rm sudoers
  283  sudo rm sudoers
  284  chmod sudoers 7777
  286  sudo gpodder
  287  chmod 0440 /etc/sudoers
  288  sudo chmod 0440 /etc/sudoers
  289  sudo nano -B /etc/sudoers
  290  visudo
  291  sudo visudo
  292  sudo
  293  sudo apt-get update
  294  sudo EDITOR=/usr/bin/gedit visudo
  295  sudo -i
  301  sudo EDITOR=/usr/bin/gedit visudo
  302  ls -aldeO /etc/sudoers
  303  gedit /etc/sudoers
  304  sudo gedit /etc/sudoers
  306  history|grep sudo
Initially, I was trying to make it so that I wouldn't have to enter a password every time I sudo something (since no one uses this computer but me).

Now I'll settle for fixing this.

Thanx again.
 
  


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
sudo(/etc/sudoers) issue knockout_artist Linux - Newbie 2 03-24-2009 05:39 PM
Help with sudo and sudoers zeeple Linux - Newbie 2 12-06-2008 12:51 PM
Preventing Sudoers from doing sudo su DejaCpp Linux - Security 4 12-22-2007 05:47 AM
/etc/sudoers is mode 0600, should be 0440 ?? echo_max Linux - Security 2 03-08-2006 10:15 PM
sudo and sudoers syntax mikemrh9 Linux - Security 7 06-04-2005 08:54 PM


All times are GMT -5. The time now is 04:28 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration