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

File: [Development] / xfs-cmds / nfs4acl / test / create.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

$ 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