Recursive change of file permissions on Debian
Recursive change of file permissions
We go to the directory for which we want to change permissions (np public_html) and then enter:

For files:
find . -type f -exec chmod 644 {} \;
For catalogues:
find . -type d -exec chmod 755 {} \;
chmod -R …