I am trying to set default permissions on my directory structure using
acl. I would like to have following default permissions for directories and for files respectively:
but when I set default permissions for
setfacl -R -d -m g::x my_dir
then newly created directories have my desired permissions, but newly created files have
-rw------- instead of
-rw-r-----. In other words, I am trying to remove
r permission from directories, while preserving
r permission on files.
How can I achieve this ?