Skip to content

Instantly share code, notes, and snippets.

@noppolp
Created May 29, 2015 09:37
Show Gist options
  • Save noppolp/681b67f98b58064012e3 to your computer and use it in GitHub Desktop.
Save noppolp/681b67f98b58064012e3 to your computer and use it in GitHub Desktop.
chmod g+s <directory> //set gid
setfacl -d -m g::rwx /<directory> //set group to rwx default
setfacl -d -m o::rx /<directory> //set other
Next we can verify:
getfacl /<directory>
Output:
# file: ../<directory>/
# owner: <user>
# group: media
# flags: -s-
user::rwx
group::rwx
other::r-x
default:user::rwx
default:group::rwx
default:other::r-x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment