Once did something similar with:
chmod -R <settings> .*
In my home directory. Thankfully not as root/sudo because I discovered that '..' matches the wildcard and it went up a level and tried to descend in to the other user's home directories.
But for the grace of $DEITY go I...