How can I reset file permissions back to defaults?
A few months ago I was using JDisk Report to scan my file tree and find the biggest space hogs, but it's a java app and doesn't understand the macOS permission system, so even though I was an admin and it could scan the entire file tree, it decided that it couldn't, so in a rather misguided moment I changed some file permissions with chmod. It didn't work and I thought nothing of it, except now that HomeBrew can't install packages because it's somehow been denied access to the folder where it stores them. I just want the permissions to go back to how there were, is any way to do this?
I can't post the specs because it's updating right now but if anyone needs them I will edit them in.
iMac 21.5", macOS 10.13