Created
September 8, 2014 16:11
-
-
Save nuex/7001372a7202d0865e03 to your computer and use it in GitHub Desktop.
I hate permissions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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