Please help! error "/etc/sudoers is mode 0666, should be 0440"

Discussion in 'Kernel Questions' started by pier17, Feb 12, 2007.

  1. pier17

    pier17 New Member

    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!
     
  2. falko

    falko Super Moderator Howtoforge Staff

    That was a really bad idea! :eek: You should have done a
    Code:
    chmod 0440 /etc/sudoers
    but 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).
     
  3. pier17

    pier17 New Member

    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?
     
  4. zcworld

    zcworld New Member

    as long as you can mount the hard drive
    and it should work :)
     

Share This Page