#!/bin/bash chown -R 999:999 * find . -type d -exec chmod 2770 {} \; find . -type f -exec chmod 660 {} \;