[BACK]Return to basic.test CVS log [TXT][DIR] Up to [Development] / xfs-cmds / xfstests / nfs4acl

File: [Development] / xfs-cmds / xfstests / nfs4acl / basic.test (download)

Revision 1.1, Fri Sep 5 06:18:15 2008 UTC (9 years, 1 month ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD

Check in Andreas Gruenbacher's nfs v4 acl tests into the xfstests suite.
Merge of master-melb:xfs-cmds:32058a by kenmcd.

  Add in AG's nfs4acl tests.

$ rm -rf d
$ mkdir d
$ cd d

$ chown bin .
$ su bin

$ touch x
$ nfs4acl --set 'everyone@:rw::allow' x
$ ls -l x | cut -d ' ' -f 1
> -rw-rw-rw-

$ nfs4acl --get x
> x:
> everyone@:rw::allow
>

$ chmod 664 x
$ ls -l x | cut -d ' ' -f 1
> -rw-rw-r--

$ nfs4acl --get x
> x:
> owner@:rw::allow
> group@:rw::allow
> everyone@:r::allow
>

$ mkdir sub 
$ nfs4acl --set 'everyone@:rwax:fd:allow' sub
$ ls -dl sub | cut -d ' ' -f 1
> drwxrwxrwx

$ nfs4acl --get sub
> sub:
> everyone@:rwax:fd:allow
>

$ chmod 775 sub
$ ls -dl sub | cut -d ' ' -f 1
> drwxrwxr-x
$ nfs4acl --get sub
> sub:
> owner@:rwax::allow
> group@:rwax::allow
> everyone@:rwax:fdi:allow
> everyone@:rx::allow
>

$ touch sub/f
$ ls -l sub/f | cut -d ' ' -f 1
> -rw-rw-rw-

$ nfs4acl --get sub/f
> sub/f:
> everyone@:rwa::allow
>

$ mkdir sub/sub2
$ ls -dl sub/sub2 | cut -d ' ' -f 1
> drwxrwxrwx

$ nfs4acl --get sub/sub2
> sub/sub2:
> everyone@:rwax:fd:allow
>

$ su
$ cd ..
$ rm -rf d