Skip to content

Instantly share code, notes, and snippets.

@guedressel
Last active January 24, 2018 11:53
Show Gist options
  • Save guedressel/d976d205e01ca76dc9f5853013cef602 to your computer and use it in GitHub Desktop.
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)
#!/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