Whamcloud - gitweb
b=20580
[fs/lustre-release.git] / lustre / tests / acl / getfacl-noacl.test
1 Getfacl utility option parsing tests. This test can be run on a
2 filesystem with or without ACL support.
3
4         $ mkdir test
5         $ cd test
6         $ umask 027
7         $ touch x
8         $ getfacl --omit-header x
9         > user::rw-
10         > group::r--
11         > other::---
12         > 
13
14         $ getfacl --omit-header --access x
15         > user::rw-
16         > group::r--
17         > other::---
18         > 
19
20         $ getfacl --omit-header -d x
21         $ getfacl --omit-header -d .
22         $ getfacl --omit-header -d /
23         > getfacl: Removing leading '/' from absolute path names
24         
25         $ getfacl --skip-base x
26         $ getfacl --omit-header --all-effective x
27         > user::rw-
28         > group::r--
29         > other::---
30         > 
31         
32         $ getfacl --omit-header --no-effective x
33         > user::rw-
34         > group::r--
35         > other::---
36         > 
37         
38         $ mkdir d
39         $ touch d/y
40 various version of getfacl handle symlink differently
41 #       $ ln -s d l
42         $ getfacl -dR . | grep file | sort
43         > # file: .
44         > # file: d
45         > # file: d/y
46         > # file: x
47         $ ln -s d l
48         
49         $ ln -s l ll
50 #       $ getfacl -dLR ll | grep file | sort
51 #       (rhel4)
52 #       > # file: ll
53 #       > # file: ll/y
54 #       (rhel5)
55 #       > # file: l
56 #       > # file: l/y
57         
58         $ rm l ll x
59         $ rm -rf d
60         $ cd ..
61         $ rmdir test