changed /etc permission in oneiric (ubuntu11.10) by using "sudo chmod 665 /etc" cant use sudo now

Posted by GuruDevil on Ask Ubuntu See other posts from Ask Ubuntu or by GuruDevil
Published on 2012-03-23T11:29:02Z Indexed on 2012/03/23 11:39 UTC
Read the original article Hit count: 286

Filed under:

i screwed up big time. i changed the permission of /etc in ubuntu 11.10 by using following command

sudo chmod 665 /etc

now when ever i try to use sudo it gives the following error:

sudo: can't open /etc/sudoers: Permission denied sudo: no valid sudoers sources found, quitting

any help will be greatly appreciated because i am new to ubuntu....i have already tried using su but it doesnt even login as root and even i give it the right password it always say Authentication Failure......i dont want to login as root coz its risky and even a newbie in linux like me is not stupid enough to have such control...i just want to use my sudo again......i have tried to go into recovery mode as well but i cant get in to recovery mode......HELP please!!!

© Ask Ubuntu or respective owner

Related posts about sudo