Dear All,
I'm little confused with the default acl(3) inheritance. As I know until now for directories:
r-reading its contents, x-step into that directory and w to create/remove file in it.
However if I make and extended default ACL for directory "dir" for a user "charles", the inheritance remove the access write permission for the user created directories.
for example: (I write the relevant parts only)
Then charles creates a new directory in dir named "userdir", and checks its permission:
What I can not understand, why is it removes the write permission from the access mask (however it works great, because charles can create files and directories, and the write permission shows in the inherited directory acl(3) for userdir)
Can anybody help me to clear this?
Thank you very much.
I'm little confused with the default acl(3) inheritance. As I know until now for directories:
r-reading its contents, x-step into that directory and w to create/remove file in it.
However if I make and extended default ACL for directory "dir" for a user "charles", the inheritance remove the access write permission for the user created directories.
for example: (I write the relevant parts only)
Code:
root:> mkdir dir
root:> setfacl -m u:charles:rwx,m::rwx dir
root:> setfacl -dm u:charles:rwx,m::rwx dir
getfacl dir:
user:charles:rwx
mask::rwx
Then charles creates a new directory in dir named "userdir", and checks its permission:
Code:
root:> getfacl dir/userdir
user:charles:rwx # effective: r-x
mask::r-x
What I can not understand, why is it removes the write permission from the access mask (however it works great, because charles can create files and directories, and the write permission shows in the inherited directory acl(3) for userdir)
Can anybody help me to clear this?
Thank you very much.