Sunday, September 17, 2017

16.04 - How to restore permissions in /usr/lib folder?



I am using ubuntu 16.04 and I accidentally ran the command,




sudo chmod -R 777 /usr/lib



Then I lost the sudo permssions, but I could get it back. But now wifi connections are not showing. Is there any way to restore permissions of this folder to the initial state?



I followed these steps to get a backup of permissions using another ubuntu system and then restored it. It works. https://www.linux.com/learn/how-easily-back-and-restore-linux-file-permissions



To backup:



getfacl -R TEST > test_permissions.txt to backup permissions




To restore:



setfacl --restore=test_permissions.txt to restore permissions


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...