That is Ok. I have used the very same method countless times - learning by doing - eventually, the lesson is learned and the knowledge remain ![]()
I recall this has been discussed before and there is a method to restore permissions to package install state.
The package pacutils contains a utility pacrepairfile
So you could use a rescue ISO to repair the file system permissions