Skip to content

Instantly share code, notes, and snippets.

@blkperl
Last active August 29, 2015 13:55
Show Gist options
  • Select an option

  • Save blkperl/8789892 to your computer and use it in GitHub Desktop.

Select an option

Save blkperl/8789892 to your computer and use it in GitHub Desktop.
$ getfacl .
# file: .
# owner: wvan
# group: cs333
user::rwx
group::---
other::---
$ nfs4_getfacl .
A:fdg:[email protected]:rxtncy
A:g:[email protected]:tncy
A:d:OWNER@:rwaxtncy
A:f:OWNER@:waxtncy
D:fdg:GROUP@:rwaDxtTcCy
D:fdg:[email protected]:rwaDxtTcCy
D:fd:EVERYONE@:rwaDxtTcCy
# Acl for directories
SUBMITACL='
group:cs333adm:r-x---a-R-c--s:fd----:allow,
group:cs333:------a-R-c--s:------:allow,
owner@:rwxp--a-R-c--s:-d----:allow,
owner@:-wxp--a-R-c--s:f-----:allow,
group@:rwxpdDaARWcCos:fd----:deny,
group:them:rwxpdDaARWcCos:fd----:deny,
everyone@:rwxpdDaARWcCos:fd----:deny,
';
SUBMITACL=`echo $SUBMITACL | sed -e 's/,$//' | tr -d ' ' | tr -d '\n'`
# Acl for files
FSUBMITACL='
group:cs333adm:r-x---a-R-c--s:fd----:allow,
group:cs333:------a-R-c--s:------:allow,
owner@:-wxp--a-R-c--s:f-----:allow,
group:them:rwxpdDaARWcCos:fd----:deny,
everyone@:rwxpdDaARWcCos:fd----:deny,
';
https://gist.github.com/blkperl/8789892
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment