For files use:

user@server:~/web$ find ~ -type f -exec chmod 644 {} \;

For directories use:

user@server:~/web$ find ~ -type d -exec chmod 755 {} \;