Skip to content

Instantly share code, notes, and snippets.

@Steffo99
Last active February 7, 2021 00:55
Show Gist options
  • Save Steffo99/63095bf1c63102b744b1ddee0aa1daea to your computer and use it in GitHub Desktop.
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.
#!/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