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
36 lines
740 B
Plaintext
36 lines
740 B
Plaintext
$ mkdir d
|
|
$ cd d
|
|
|
|
$ whoami
|
|
> root
|
|
|
|
$ mkdir d1 d2 d3 d4
|
|
$ nfs4acl --set 'daemon:wx::allow' d2
|
|
$ nfs4acl --set 'daemon:ax::allow' d3
|
|
$ nfs4acl --set 'daemon:wax::allow' d4
|
|
|
|
$ su daemon
|
|
|
|
Cannot create files or directories without permissions:
|
|
$ touch d1/f
|
|
> touch: cannot touch `d1/f': Permission denied
|
|
$ mkdir d1/d
|
|
> mkdir: cannot create directory `d1/d': Permission denied
|
|
|
|
Can create files with add_file (w) permission:
|
|
$ touch d2/f
|
|
$ mkdir d2/d
|
|
> mkdir: cannot create directory `d2/d': Permission denied
|
|
|
|
Can create directories with add_subdirectory (p) permission:
|
|
$ touch d3/f
|
|
> touch: cannot touch `d3/f': Permission denied
|
|
$ mkdir d3/d
|
|
|
|
Both permissions at the same time:
|
|
$ touch d4/f
|
|
$ mkdir d4/d
|
|
$ su
|
|
$ cd ..
|
|
$ rm -rf d
|