I ran a stupid command: sudo chown -R ngoclb:ngoclb /usr
.
Then I couldn't use sudo command and login to Ubuntu.
To fix this issue, I using recovery mode to chown /usr
to root (sudo chown -R root:root /usr
) and can logged in to Ubuntu, but now, the GUI of Ubuntu is not like default (it's same like Windows classic for some component: scrollbar, menu…) and I cannot access to System Settings/User Account.
How can i fix this ?
Ubuntu – Restore permission default of /usr folder
chowndefaultpermissionsusers
Best Answer
Almost everything in
/usr
is owned byroot:root
I run
find /usr -not -gid 0 -printf "%M\t%u\t%g\t%p\n"
here using 15.04 and the output isand given the output, I don't see what you might have wrong to get what you describe. May be the dbus stuff...
But you can nonetheless manually chown the above file to try to get your ubuntu back.
you might not have the same files or I may miss some of your files, so even if you manually chown the files above, you're not entirely finished with it.