4 ! Run these tests on a filesystem with ACL support.
18 group::r-- #effective:---
31 $ setfacl -m u:joe:rw g
42 $ setfacl -m u::rwx,g::r-x,o:- g
53 $ setfacl -m u::rwx,g::r-x,o:-,m:- g
59 user:joe:rw- #effective:---
60 group::r-x #effective:---
64 $ setfacl -m u::rwx,g::r-x,o:-,u:root:-,m:- g
71 user:joe:rw- #effective:---
72 group::r-x #effective:---
76 $ setfacl -m u::rwx,g::r-x,o:-,u:root:-,m:- g
83 user:joe:rw- #effective:---
84 group::r-x #effective:---
88 $ setfacl -m u::rwx,g::r-x,o:-,u:root:- g
100 $ setfacl --test -x u: g
101 setfacl: g: Malformed access ACL `user:root:---,user:joe:rw-,group::r-x,mask::rwx,other::---': Missing or wrong entry at entry 1
102 $ setfacl --test -x u:x
103 setfacl: Option -x: Invalid argument near character 3
104 $ setfacl -m d:u:root:rwx g
105 setfacl: g: Only directories can have default ACLs
107 setfacl: g: Malformed access ACL `user::rwx,user:root:---,user:joe:rw-,group::r-x,other::---': Missing or wrong entry at entry 5
108 !setfacl --test -m d:u:joe:rwx setfacl
109 !setfacl --test -n -m d:u:joe:rwx setfacl
112 ! Check if the mask is properly recalculated
115 $ setfacl --test -m u::rwx,u:@OWNER@:rwx,g::r-x,o::--- d
116 d: u::rwx,u:@OWNER@:rwx,g::r-x,m::rwx,o::---,*
117 $ setfacl --test -m u::rwx,u:@OWNER@:rwx,g::r-x,m::---,o::--- d
118 d: u::rwx,u:@OWNER@:rwx,g::r-x,m::---,o::---,*
119 $ setfacl --test -d -m u::rwx,u:@OWNER@:rwx,g::r-x,o::--- d
120 d: *,d:u::rwx,d:u:@OWNER@:rwx,d:g::r-x,d:m::rwx,d:o::---
121 $ setfacl --test -d -m u::rwx,u:@OWNER@:rwx,g::r-x,m::---,o::--- d
122 d: *,d:u::rwx,d:u:@OWNER@:rwx,d:g::r-x,d:m::---,d:o::---