Chmod overiding default ACLs.

Solution For Your Network Issues.

Chmod overiding default ACLs.

Postby linuxczar » Mon Feb 02, 2015 1:40 pm

Hai,

I have set up default acls on a directory to allow user user1 to read it. This directory is owned by root:root.


Code:
setfacl -d -m u:user1:rx /directory

I also did via the group.

This works fine, new files made by root are readable.


Code:
getfacl /directory supports this:

...
default:user:user1:r-x
...
default:group:user1:r-x

However, the process that is writing new files is writing them as 700, and this user cannot read those files.


Code:
getfacl /directory/newfile gives:

#file: newfile
#owner: root
#group: root
user::rwx
user:user1:r-x #effective:---
group::r-x #effective---
group:user1:r-x #effective----
mask::r-x
other::r-x

This occurs also if you create a file that is readable, then chmod 700.

Can some explain the effective rights for me and why its overiding the acls where the files are either chmod 700, or written as 700 by the process that is writing them? I know this is the correct behaviour, I am just trying to understand why this is.
linuxczar
 
Posts: 0
Joined: Mon Feb 02, 2015 9:56 am

Re: Chmod overiding default ACLs.

Postby linux-user » Mon Feb 02, 2015 5:32 pm

linux-user
 
Posts: 0
Joined: Mon Jan 19, 2015 1:15 pm


Return to Linux Networking

Login  •  Register

cron