summaryrefslogtreecommitdiff
path: root/test/getfacl-noacl.test
blob: 6d730c497b7c80494ecfb9d333023bfc1c6ea750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Getfacl utility option parsing tests. This test can be run on a
filesystem with or without ACL support.

	$ mkdir test
	$ cd test
	$ umask 027
	$ touch x
	$ getfacl --omit-header x
	> user::rw-
	> group::r--
	> other::---
	> 

	$ getfacl --omit-header --access x
	> user::rw-
	> group::r--
	> other::---
	> 

	$ getfacl --omit-header -d x
	$ getfacl --omit-header -d .
	$ getfacl --omit-header -d /
	> getfacl: Removing leading '/' from absolute path names
	
	$ getfacl --skip-base x
	$ getfacl --omit-header --all-effective x
	> user::rw-
	> group::r--
	> other::---
	> 
	
	$ getfacl --omit-header --no-effective x
	> user::rw-
	> group::r--
	> other::---
	> 
	
	$ mkdir d
	$ touch d/y
	$ ln -s d l
	$ getfacl -dR . | grep file | sort
	> # file: .
	> # file: d
	> # file: d/y
	> # file: x
	
	$ ln -s l ll
	$ getfacl -dLR ll | grep file | sort
	> # file: ll
	> # file: ll/y
	
	$ rm l ll x
	$ rm -rf d
	$ cd ..
	$ rmdir test