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?
Try with one of the following :
sudo chown [USERNAME]:root /usr/lib
sudo chmod 0755 /usr/lib
Use option -R with chown if its just for recursive.
pkexec chown root /usr/lib/sudo/sudoers.so
pkexec chmod go-w /usr/lib/sudo/sudoers.so
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
1 year ago