Ubuntu: can't access the user account


Mistakenly I wanted to change the ownership or /usr and /etc and /home by

chown -R username  

because I thought in this case, I won't see any error saying permission denied in installing softwares and etc, but by having done it, got an error meaning that sudo was ruined. I tried to solve it by using

chown -R root:root /usr/lib/sudo   

and but no luck then tried it after entering command in below

mount -o rw,remount /   

in ubuntu recovery, while it is now the only way I can communicate with my ubuntu using root shell prompt. then I got error in below:

sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'  sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner  sudo: fatal error, unable to load plugins  

none of having said commands, solved the problem. after trying to access to my account to get backup of my data to reinstall ubuntu, I faced with another bigger problem: I can't see my username account in log in screen. I see only guest session. while even logging into guest session it brings me back again in log in screen. I really don't know what to do. please if help if you know how to solve it. I can't use sudo at all and can't also apt.get update in recovery ubuntu screen.


Create a Ubutnu live cd, mount the drive Ubutnu is installed on and do chown -R root: /media/ubuntu/YourDriveName/etc. Repeat this but replace etc with usr. I think there is no reason the change the owners of /etc and /usr.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »