summaryrefslogtreecommitdiff
path: root/test/root/getfacl.test
blob: 649ebaec1c988f33057d2c01fed100afbef5fd7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Make sure that getfacl always adds at least one space between the permissions
in an acl entry and the effective permissions comment.

Cry immediately if we are not running as root.

	$ require_root

	$ umask 022
	$ mkdir d
	$ groupadd loooooooooooooooooooooooonggroup
	$ setfacl -dm group:loooooooooooooooooooooooonggroup:rwx d
	$ getfacl -cde d
	> user::rwx
	> group::r-x	#effective:r-x
	> group:loooooooooooooooooooooooonggroup:rwx	#effective:rwx
	> mask::rwx
	> other::r-x
	>

	$ groupdel loooooooooooooooooooooooonggroup
	$ rm -r d