0

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?

3 Answers3

1
  1. Reboot the system to enter grub. Select recovery mode. Enter root shell
  2. Remount the system with read/write permissions: mount / -o rw,remount
  3. Run chown -R root:root /usr/lib. Once done, reboot.
A.B.
  • 92,125
0

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.

0

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
heemayl
  • 93,925