|
|
| File: [Development] / xfs-cmds / xfstests / nfs4acl / create.test (download)
Revision 1.1, Fri Sep 5 06:18:15 2008 UTC (9 years, 1 month ago) by tes.longdrop.melbourne.sgi.com
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. |
$ 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