Last active
February 7, 2021 00:55
-
-
Save Steffo99/63095bf1c63102b744b1ddee0aa1daea to your computer and use it in GitHub Desktop.
Make all future files and subdirectories created in a certain directory writable by the group.
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
#!/usr/bin/fish | |
# Make all future files and subdirectories created in a certain directory writable by the group. | |
# Set the setuid flag on all subdirectories | |
chmod g+s (find -type d) | |
# Set the default file ACL for the group to rwx | |
setfacl -d -m g::rwx (find -type d) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment