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