#!/bin/sh find . -type d -exec chmod 775 {} \; find . -type f -exec chmod 664 {} \; sudo chown -R 500:48 . chmod 775 $0