On Mon, Jan 16, 2012 at 07:08:30PM +0100, Roberto Puzzanghera wrote:
> My case is simpler. I have to share the users' web space (vs1
> context) to the apache vserver (vs2 context). So the shared tree is
> owned by userID:apacheID and the apacheID=80 is common between vs1
> and vs2; so there's non need to grant 777 permissions.
I do this with ACLs. Something like this should work:
setfacl -dm g:apache:rx DIRECTORY
setfacl -m d:g:users:rx DIRECTORY
I hope I stripped it down correctly, as I ripped it from a line I used
earlier to set 3 users and a group. Obviously only the group is left
here.
Be aware, apache only delivers if the file in question is
world-readable (o+r).
Regards,
Adrian
-- LiHAS - Adrian Reyer - Hessenwiesenstraße 10 - D-70565 Stuttgart Fon: +49 (7 11) 78 28 50 90 - Fax: +49 (7 11) 78 28 50 91 Mail: lihas_at_lihas.de - Web: http://lihas.de Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 StuttgartReceived on Mon Jan 16 21:08:41 2012