I have a directory data
and I need to set default umask
and ownership for all directories/files (both existing and future files).
I want all files in data
to have ownership root:martin
ans permissions 750/640
I am aware that I can use setfacl
to set default umask
recursively using
setfacl -R -d -m o::--- data
and that I can use setgid
bit on the directory, so that all created files have ownership root:martin
chmod -R +s data
What I am not sure about is whether I should combine setgid
with acl
. Can I perhaps achieve the same with acl
only? How would I do it? Would that solution be superior?