check: Remount file system if MOUNT_OPTIONS changed
[xfstests-dev.git] / nfs4acl / create.test
1 $ mkdir d
2 $ cd d
3
4 $ whoami
5 > root
6
7 $ mkdir d1 d2 d3 d4
8 $ nfs4acl --set 'daemon:wx::allow' d2
9 $ nfs4acl --set 'daemon:ax::allow' d3
10 $ nfs4acl --set 'daemon:wax::allow' d4
11
12 $ su daemon
13
14 Cannot create files or directories without permissions:
15         $ touch d1/f
16         > touch: cannot touch `d1/f': Permission denied
17         $ mkdir d1/d
18         > mkdir: cannot create directory `d1/d': Permission denied
19
20 Can create files with add_file (w) permission:
21         $ touch d2/f
22         $ mkdir d2/d
23         > mkdir: cannot create directory `d2/d': Permission denied
24
25 Can create directories with add_subdirectory (p) permission:
26         $ touch d3/f
27         > touch: cannot touch `d3/f': Permission denied
28         $ mkdir d3/d
29
30 Both permissions at the same time:
31         $ touch d4/f
32         $ mkdir d4/d
33 $ su
34 $ cd ..
35 $ rm -rf d