|
|
| File: [Development] / xfs-cmds / nfs4acl / test / basic.test (download)
Revision 1.2, Thu Jul 24 15:56:14 2008 UTC (9 years, 3 months ago) by tes.longdrop.melbourne.sgi.com
This test case was supposed to be run as user and didn't work when run as root. Change that so that it expects to be run as root, like all other test cases. Merge of master-melb:xfs-cmds:31745a by kenmcd. |
$ 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