find . -type d -exec chmod 775 {} \; find . -type f -exec chmod 664 {} \; chmod 777 -R downloader var media