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?
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?
grub. Select recovery mode. Enter root shellmount / -o rw,remountchown -R root:root /usr/lib. Once done, reboot.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.
It's very easy! Boot with Instalation CD (Ubuntu), and go to /media/ubuntu/(your disk Ubuntu), then execute:
sudo chown root -R /usr/lib