Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Oct 2007 11:00:41 -0400
From:      Josh Endries <josh@endries.org>
To:        freebsd-questions@freebsd.org
Subject:   ACL mask problems
Message-ID:  <470B9799.8080601@endries.org>

next in thread | raw e-mail | index | archive | help
Hello,

I'm getting quite annoyed at ACLs. I don't understand why this is 
happening: I have a directory that gets subdirectories created by a web 
script, but for some reason those directories have different 
permissions. Here is the parent's default ACL, which as I understand it 
should be what subdirectories are created with:

# getfacl -d private/logs/mail/2007
#file:private/logs/mail/2007
#owner:1005
#group:1005
user::rwx
user:www:rwx
user:rsync:rwx
group::rwx
mask::rwx
other::---

This is the ACL of a directory created by the script:

# getfacl private/logs/mail/2007/10
#file:private/logs/mail/2007/10
#owner:1005
#group:1005
user::rwx
user:www:rwx            # effective: r-x
user:rsync:rwx          # effective: r-x
group::rwx              # effective: r-x
mask::r-x
other::---

This unfortunately prevents Apache from writing it's log files. Why did 
the mask change? I know there's some link between the mask and group 
permissions, or something weird like that, but I thought group being rwx 
and mask rwx would cause the new mask to also be rwx...maybe other is 
causing the issue? That seems pretty dumb to me. I've read various pages 
on ACLs, including the handbook, and I haven't been able to understand 
this. :(

Thanks,
Josh



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?470B9799.8080601>