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.
-R
flag everywhere that means recursively so it applies to each file and directory in a provided path. – JoKeR Jun 28 '15 at 08:24