Folder default ACLs not inherited when new file is created

Posted by Flavien on Server Fault See other posts from Server Fault or by Flavien
Published on 2012-06-25T15:08:32Z Indexed on 2012/06/25 15:17 UTC
Read the original article Hit count: 260

Filed under:
|
|

I'm a bit of a beginner with Unix systems, but I'm running Cygwin on my Windows Server, and I am trying to figure out something related to extended ACLs.

I have a directory to which I set the following ACLs:

Administrator@MyServer ~
$ setfacl -m d:u:Someuser:r-- somedir

Administrator@MyServer ~
$ getfacl somedir/
# file: somedir/
# owner: Administrator
# group: None
user::rwx
group::r-x
mask:rwx
other:r-x
default:user::rwx
default:user:Someuser:r--
default:group::r-x
default:mask:rwx
default:other:r-x

As you can see mose of the default ACLs have the x bit. Then when I create a fine in it, it doesn't inherit the ACLs it is supposed to:

Administrator@MyServer ~
$ touch somedir/somefile

Administrator@MyServer ~
$ getfacl somedir/somefile
# file: somedir/somefile
# owner: Administrator
# group: None
user::rw-
user:Someuser:r--
group::r--
mask:rwx
other:r--

It's basically missing the x bit everywhere.

Any idea why?

© Server Fault or respective owner

Related posts about filesystems

Related posts about acl