blob: e140f4b41dc598f6a366308c216cccfd781e113a [file] [log] [blame]
$ 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