freenasbbs
Dabbler
- Joined
- Jan 9, 2014
- Messages
- 37
zfs filesystem
i have a doubt of setfacl,please help,thank you!
path : /mnt/fl/file/test1
specially i use "fd" inheritance flags for file_inherit / dir_inherit
command like this:
setfacl -m u:u1:r-x---a-R-c--s:fd----:allow file
after that i creat a new folder "test2" (path: /mnt/fl/file/test2 )
The question is when i getfacl "test1" ,it shows
# file: test1
# owner: root
# group: wheel
owner@:rwxp--aARWcCos:------:allow
group@:rwxp--a-R-c--s:------:allow
everyone@:------a-R-c--s:------:allow
it seems "fd" inheritance flags did't play a role
but getfacl "test2" (new folder after "setfacl" )
# file: test2
# owner: root
# group: wheel
user:u1:r-x---a-R-c--s:fd----:allow
owner@:rwxp--aARWcCos:------:allow
group@:rwxp--a-R-c--s:------:allow
everyone@:------a-R-c--s:------:allow
the result is Ok
so how can inherit Acl to subdirectories which are exist before setfacl?
i have a doubt of setfacl,please help,thank you!
path : /mnt/fl/file/test1
specially i use "fd" inheritance flags for file_inherit / dir_inherit
command like this:
setfacl -m u:u1:r-x---a-R-c--s:fd----:allow file
after that i creat a new folder "test2" (path: /mnt/fl/file/test2 )
The question is when i getfacl "test1" ,it shows
# file: test1
# owner: root
# group: wheel
owner@:rwxp--aARWcCos:------:allow
group@:rwxp--a-R-c--s:------:allow
everyone@:------a-R-c--s:------:allow
it seems "fd" inheritance flags did't play a role
but getfacl "test2" (new folder after "setfacl" )
# file: test2
# owner: root
# group: wheel
user:u1:r-x---a-R-c--s:fd----:allow
owner@:rwxp--aARWcCos:------:allow
group@:rwxp--a-R-c--s:------:allow
everyone@:------a-R-c--s:------:allow
the result is Ok
so how can inherit Acl to subdirectories which are exist before setfacl?