$ rm -rf d
$ mkdir d
$ cd d

$ touch x

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

$ nfs4acl --set 'everyone@:w::allow owner@:r::allow group@:r::allow' x
$ chmod 664 x
$ nfs4acl --get x
> x:
> owner@:rw::allow
> group@:rw::allow
>

$ nfs4acl --set 'everyone@:w::deny owner@:rw::allow group@:rw::allow' x
$ chmod 664 x
$ nfs4acl --get x
> x:
> owner@:r::allow
> group@:r::allow
>

$ nfs4acl --set 'owner@:rwmo::allow' x
$ nfs4acl --get x
> x:
> owner@:rwmo::allow
>

$ chmod 644 x
$ nfs4acl --get x
> x:
> owner@:rw::allow
>

$ nfs4acl --set 'root:rw::allow' x
$ chmod 664 x
$ nfs4acl --get x
> x:
> root:rw::allow
>

$ chmod 644 x
$ nfs4acl --get x
> x:
> root:r::allow
>

$ chmod 664 x
$ nfs4acl --get x
> x:
> root:rw::allow
>

$ nfs4acl --set 'root:rw::allow everyone@:r::allow' x
$ chmod 664 x
$ nfs4acl --get x
> x:
> root:rw::allow
> everyone@:r::allow
>

$ nfs4acl --set 'root:r::allow everyone@:rw::allow' x
$ chmod 664 x
$ nfs4acl --get x
> x:
> root:rw::allow
> owner@:rw::allow
> group@:rw::allow
> everyone@:r::allow
>

$ nfs4acl --set 'root:w::deny everyone@:rw::allow' x
$ chmod 664 x
$ nfs4acl --get x
> x:
> root:w::deny
> owner@:rw::allow
> group@:rw::allow
> root:r::allow
> everyone@:r::allow
>

$ nfs4acl --set 'root:rw::allow root:w::deny everyone@:rw::allow' x
$ chmod 664 x
$ nfs4acl --get x
> x:
> root:rw::allow
> root:w::deny
> owner@:rw::allow
> group@:rw::allow
> everyone@:r::allow
>

$ nfs4acl --set 'everyone@:rw::allow' x
$ chmod 066 x
$ nfs4acl --get x
> x:
> owner@:rw::deny
> everyone@:rw::allow
> 

$ chmod 006 x
$ nfs4acl --get x
> x:
> owner@:rw::deny
> group@:rw::deny
> everyone@:rw::allow
> 

$ chmod 606 x
$ nfs4acl --get x
> x:
> group@:rw::deny
> everyone@:rw::allow
> 

$ nfs4acl --set 'root:rw::allow everyone@:rw::allow' x
$ chmod 606 x
$ nfs4acl --get x
> x:
> group@:rw::deny
> everyone@:rw::allow
> 

$ chmod 646 x
$ nfs4acl --get x
> x:
> root:r::allow
> group@:w::deny
> root:w::deny
> everyone@:rw::allow
> 

$ cd ..
$ rm -rf d
