Last active
January 24, 2018 11:53
-
-
Save guedressel/d976d205e01ca76dc9f5853013cef602 to your computer and use it in GitHub Desktop.
Resets permissions of a directory to have guid set on directories and everything group writable (recursively)
This file contains 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/bash | |
find . -type d -exec chmod u=rwx,g=rwxs,o=rx {} \; | |
find . -type f -exec chmod g-s {} \; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment