Files
apfstests/nfs4acl/create.test
T
Tim Shimmin 841b609ec9 Check in Andreas Gruenbacher's nfs v4 acl tests into the xfstests suite.
Merge of master-melb:xfs-cmds:32058a by kenmcd.

  Run all the tests in xfstests/nfs4acl
2008-09-05 06:18:15 +00:00

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