cd /home/user/domains/domain.com/public_html find . -type d -exec chmod 0755 {} \; find . -type f -exec chmod 0644 {} \;