Question: I was installing LAMP and I accidentally "chmoded" with -R my hole home user folder.... (`sudo chmod 755 /home/user -R`) but now my desktop themes won't load... I'm Using the Mate version of Debian Jessie... How to get things back to normal? or what's the normal chmod config for my hole home user folder?

Can anyone help out?

Answer: 
There's no miracle recipe to restore permissions, other than restoring from a backup. But fortunately for you permissions in a typical home directory are typically not very diverse.

* Most regular files should have permission `rw-r--r--` (644) if you don't mind that other users can read them, or `rw-------` (600) if they're private.
* Directories should have permission `rwxr-xr-x` (755) if you don't mind that other users can access files in them, or `rwx------` (700) if you want all the files in them to be private.
* If you need to work with other users on the same machine, you might need to give them access via groups or ACL, but you'd know about that.
* The `.ssh` directory needs to be more restrictive. The simple thing is to make it fully private.
* Files that you want to execute need to be made executable. These are far in between unless you have software installed in your home directory.

Starting from everything in mode 755, this should mostly fix things:

```
find ~ -type d -exec chmod 755 {} + -type f -exec chmod -x {} +
chmod +x ~/bin/*
chmod go= ~/.ssh ~/.ssh/*

```
Ok Found a solution here... Copy All Files to a NTFS partition... Format or Create another User and Copy back the files you need to the new system or the new user account... Done...