Whamcloud - gitweb
- added test_3b which emulates recursive mount. Does not pass yet.
[fs/lustre-release.git] / lustre / tests / acl_fileutil.test
1 !
2 ! Test for the patched file utilities.
3 !
4 $ umask 022
5 $ mkdir dir
6 $ acl_mode dir
7 drwxr-xr-x
8 $ touch dir/f
9 $ getfacl --omit-header dir/f
10 user::rw-
11 group::r--
12 other::r--
13
14 $ umask 027
15 $ cp -p dir/f dir/g
16 $ getfacl --omit-header dir/g
17 user::rw-
18 group::r--
19 other::r--
20
21 $ rm dir/g
22 $ cp dir/f dir/g
23 $ getfacl --omit-header dir/g
24 user::rw-
25 group::r--
26 other::---
27
28 $ setfacl -m u::rwx,u:joe:rwx,g::rwx,o::r-x dir/.
29 $ setfacl -dm u::rwx,u:joe:rwx,g::rwx,o::r-x dir/.
30 $ acl_mode dir
31 drwxrwxr-x+
32 $ touch dir/h
33 $ getfacl --omit-header --no-effective dir/h
34 user::rw-
35 user:joe:rwx
36 group::rwx
37 mask::r--
38 other::---
39
40 $ mkdir dir/d
41 $ getfacl --omit-header --no-effective dir/d
42 user::rwx
43 user:joe:rwx
44 group::rwx
45 mask::r-x
46 other::---
47 default:user::rwx
48 default:user:joe:rwx
49 default:group::rwx
50 default:mask::rwx
51 default:other::r-x
52
53 $ cp dir/f dir/i
54 $ getfacl --omit-header --no-effective dir/i
55 user::rw-
56 user:joe:rwx
57 group::rwx
58 mask::r--
59 other::---
60
61 $ acl_mode dir/f
62 -rw-r--r--
63 $ cp -p dir/f dir/j
64 $ acl_mode dir/j
65 -rw-r--r--
66 $ rm -r dir