#!/bin/sh chgrp www-data . chgrp -R www-data * find . -type f -exec chmod 664 {} \; find ./bin -type f -exec chmod 775 {} \; find . -type d -exec chmod 775 {} \; find . -type d -exec chmod +s {} \; chmod +x fixperms.sh