1#!/usr/bin/env bash 2# fixes the permissions to 022 3DIR=${1:-.} 4time chmod a+r -R $DIR && find $DIR -perm /u+x -execdir chmod a+x {} \; && echo "OK" 5 6