I backed up my entire home directory using rsync and moved the backup to a new installation of Linux. Somehow my file permissions got completely screwed up (all files were owned by user "999" and file permissions were set to
I ran a quick
sudo chown -R username:username ~/ which fixed some issues I was having with my audio, but now all my plain-text files (and even movies and music) are marked as executable, other users can view my files, etc.
How can I restore my file permissions to a "normal" state? Restoring from a backup isn't exactly possible, since the backup has screwed up permissions as well. I can always reinstall my OS and purge the config files from the backup, leaving me only with personal documents that I can then recursively set the permissions for, but what should I set the permissions to? A
sudo chmod -R 660 ~/Music for example leaves me unable to listen to my music, even though I am the owner.