Skip to content

Instantly share code, notes, and snippets.

@nuex
Created September 8, 2014 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nuex/7001372a7202d0865e03 to your computer and use it in GitHub Desktop.
Save nuex/7001372a7202d0865e03 to your computer and use it in GitHub Desktop.
I hate permissions
#!/bin/sh
# Run this in your current directory to chmod files and directories with
# default permissions to allow group access.
find . -type f -perm 644 -print -exec chmod 664 {} \;
find . -type d -perm 744 -print -exec chmod 774 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment