I know they say that given root access, someone will eventually type before they think and fubar their machine, and I just did.
I did a recursive chmod changing everything to 775 thinking I was in a sub directory, but alas, I was in /. Is there any magical way to undo this, or at the very least, get a list of default directory permissions and manually restore them?