Re: [vserver] ext4 inode tagging

From: Adrian Reyer <are_at_lihas.de>
Date: Mon 16 Jan 2012 - 21:08:21 GMT
Message-ID: <20120116210821.GA7421@r2d2.s.lihas.de>

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 Stuttgart
Received on Mon Jan 16 21:08:41 2012
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 16 Jan 2012 - 21:08:43 GMT by hypermail 2.1.8