$ rm -rf d
$ mkdir d
$ cd d

$ chown bin .
$ su bin

$ touch x
$ nfs4acl --set 'everyone@:rw::allow' x
$ ls -l x | cut -d ' ' -f 1
> -rw-rw-rw-

$ nfs4acl --get x
> x:
> everyone@:rw::allow
>

$ chmod 664 x
$ ls -l x | cut -d ' ' -f 1
> -rw-rw-r--

$ nfs4acl --get x
> x:
> owner@:rw::allow
> group@:rw::allow
> everyone@:r::allow
>

$ mkdir sub 
$ nfs4acl --set 'everyone@:rwax:fd:allow' sub
$ ls -dl sub | cut -d ' ' -f 1
> drwxrwxrwx

$ nfs4acl --get sub
> sub:
> everyone@:rwax:fd:allow
>

$ chmod 775 sub
$ ls -dl sub | cut -d ' ' -f 1
> drwxrwxr-x
$ nfs4acl --get sub
> sub:
> owner@:rwax::allow
> group@:rwax::allow
> everyone@:rwax:fdi:allow
> everyone@:rx::allow
>

$ touch sub/f
$ ls -l sub/f | cut -d ' ' -f 1
> -rw-rw-rw-

$ nfs4acl --get sub/f
> sub/f:
> everyone@:rwa::allow
>

$ mkdir sub/sub2
$ ls -dl sub/sub2 | cut -d ' ' -f 1
> drwxrwxrwx

$ nfs4acl --get sub/sub2
> sub/sub2:
> everyone@:rwax:fd:allow
>

$ su
$ cd ..
$ rm -rf d
