Skip to content

Instantly share code, notes, and snippets.

@bluemanos bluemanos/chmods
Created Dec 16, 2014

Embed
What would you like to do?
Recursive change chmods for directories and files
#!/bin/sh
path=${1:-.}
echo $path
echo $(date)
find "$path" -type d -exec chmod 755 {} \;
find "$path" -type f -exec chmod 644 {} \;
echo $(date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.