[BACK]Return to write-vs-append.test CVS log [TXT][DIR] Up to [Development] / xfs-cmds / nfs4acl / test

File: [Development] / xfs-cmds / nfs4acl / test / write-vs-append.test (download)

Revision 1.1, Thu Jul 24 15:49:51 2008 UTC (9 years, 3 months ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD

nfs4acl-0.9 userspace from Andreas Gruenbacher.
 It includes the nfs4acl command, library and qa tests.
Merge of master-melb:xfs-cmds:31737a by kenmcd.

$ mkdir d
$ cd d

$ whoami
> root

$ touch a b c d e f
$ nfs4acl --set 'owner@:*::allow' a
$ nfs4acl --set 'owner@:*::allow bin:w::allow' b
$ nfs4acl --set 'owner@:*::allow bin:a::allow' c
$ nfs4acl --set 'owner@:*::allow bin:wa::allow' d
$ nfs4acl --set 'bin:a::deny owner@:*::allow bin:w::allow' e
$ nfs4acl --set 'bin:w::deny owner@:*::allow bin:a::allow' f

$ su bin
$ echo a > a
> /bin/sh: a: Permission denied
$ echo b > b
$ echo c > c
> /bin/sh: c: Permission denied
$ echo d > d
$ echo e > e
$ echo f > f
> /bin/sh: f: Permission denied

$ echo A >> a
> /bin/sh: a: Permission denied
$ echo B >> b
> /bin/sh: b: Permission denied
$ echo C >> c
$ echo D >> d
$ echo E >> e
> /bin/sh: e: Permission denied
$ echo F >> f

$ su
$ cat a b c d e f
> b
> C
> d
> D
> e
> F

$ cd ..
$ rm -rf d