PDA

View Full Version : Please help! error "/etc/sudoers is mode 0666, should be 0440"


pier17
12th February 2007, 18:03
Hi all,

on ubuntu server, I got this message "/etc/sudoers is mode 0666, should be 0440" when I try to do some configurations.

then I got into the recovery mode and put " chmod -R 0440 /etc"
when it boots normally I got ;

(none)login:

when I put any user password it doesnt accept even root user..

what should I do???:(

thanks in advance!

falko
13th February 2007, 18:51
then I got into the recovery mode and put " chmod -R 0440 /etc"

That was a really bad idea! :eek: You should have done a chmod 0440 /etc/sudoersbut you chmod'ed all files and directories in /etc to 0440 recursively.
I think all you can do is a clean re-install (unless you have a backup of a working /etc directory).

pier17
13th February 2007, 20:13
thank you for helping..

if I put ubuntu live cd and boot from it and then mount my hard drive to other location..

would it work?

zcworld
14th February 2007, 13:54
as long as you can mount the hard drive
and it should work :)