mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
841b609ec9
Merge of master-melb:xfs-cmds:32058a by kenmcd. Run all the tests in xfstests/nfs4acl
144 lines
2.0 KiB
Plaintext
144 lines
2.0 KiB
Plaintext
$ 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
|