Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I chowned -R username /usr/lib and now i cannot sudo or do any thing really due to sudoers.so belonging to username.

How do i fix this and make /usr/lib owned by root again?

share|improve this question

1 Answer 1

Try with one of the following :

sudo chown [USERNAME]:root /usr/lib

Or

sudo chmod 0755 /usr/lib

Use option -R with chown if its just for recursive.

share|improve this answer
    
sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0 sudo: fatal error, unable to load plugins this is the error it gives me. I also cannot boot into recovery mode by holding shift. I think its because this instalation has been done on top of a w8 OEM laptop. any ideas? –  Henrik Harju Dec 12 '13 at 17:35
    
No. Someone has given that file ownership to the user with chown without -R. Before reinstall, just try with pkexec chown root /usr/lib/sudo/sudoers.so or pkexec chmod go-w /usr/lib/sudo/sudoers.so –  user224082 Dec 12 '13 at 17:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.