#!/bin/bash cd .. chown -R $USER:$USER . find . -type d -exec chmod 0755 '{}' \; find . -type f -exec chmod 0644 '{}' \;