sudo: /etc/sudoers is mode 0777, should be 0440
OS : Linux Flavor : Fedora 8
I dont know how this error came but got something to do with myself trying to get a root view yesterday evening , half sleepy. The below would solve the trouble:-
[saffrongeek@nerd1 ~]$ sudo chmod 0644 /home/saffrongeek /.dmrc
sudo: /etc/sudoers is mode 0777, should be 0440
[saffrongeek@nerd1 ~]$ cd /etc/
[saffrongeek@nerd1 etc]$ su root
Password:
[root@nerd1 etc]# chmod 440 sudoers
[root@nerd1 etc]# ls -l sudoers
-r–r—– 1 root root 3211 2008-04-29 17:18 sudoers
Loading...
login as root before
and then
open ur terminal
and then
type : chmod 440 /etc/sudoers
now FINISH
ndanx_cute - December 31, 2008 at 2:35 am
what is ur terminal
salman - March 1, 2009 at 12:42 pm
Gnome Terminal
If you are a newbie and got an ubuntu the path to a terminal is as follows:
Application->Accessories->Terminal
To know more , either you could use the ‘help’ menu contents or the following link to know more about terminal.
http://tldp.org/HOWTO/Text-Terminal-HOWTO-1.html
saffrongeek - March 1, 2009 at 1:03 pm
i tried the above commands, but i didn’t get solved my problem.
sreejith@sreejith-desktop:~$ chmod 440 /etc/sudoers
chmod: changing permissions of `/etc/sudoers’: Operation not permitted
sreejith@sreejith-desktop:~$
sreejith. K. B - October 1, 2009 at 3:57 pm
Hi Sreejith,
If you notice , when I tried the mentioned command, I was root user i believe.. . You can find I changed to root before this command in my post.
Thanks.
Regards
saffrongeek - October 2, 2009 at 6:04 am