xfs
[Top] [All Lists]

Re: xfs and acl > inherit permissions (acl)

To: Hugo Lafargue <secure@xxxxxxxx>
Subject: Re: xfs and acl > inherit permissions (acl)
From: Lawrence Walton <lawrence@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 21 Mar 2002 08:23:41 -0800
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <00b401c1d0ed$40cda4d0$c102010a@xxxxxxx>
References: <Pine.LNX.4.44.0203210424000.16911-100000@xxxxxxxxxxxxxxxxxxxxxxxxx> <3C99C208.EFFCA9D8@xxxxxxxxx> <20020321122706.A27485@xxxxxxxxxxxxx> <00b401c1d0ed$40cda4d0$c102010a@xxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.3.27i
Hugo Lafargue [secure@xxxxxxxx] wrote:
> Hi,
> 
> I have a linux with a 2.4.14 xfs patched kernel.
> ACL are working as it should do I guess...
> 
> but i have an issue with files created by root logged in a console (this is
> an example...)
> 
> here is the acl of the directory /home/hugo
> 
> $ getfacl /home/hugo
> #file: /home/hugo
> #owner: hugo
> #group: admins
> user::rwx
> user:paul:r-x
> user:hugo:rwx
> group::r-x
> group:admins:rwx
> mask::rwx
> other::---
> 
> if i understand correctly how acl works,
> - the user 'hugo' as Read-Write-Execute rights,
> - the user 'paul' as Read-Execute rights,
> - members of the 'admins' group have Read-Write-Execute rights,
> - access to this directory is forbidden for other users
> Am I right or wrong ? tell me...
> 
> well, if I create a test file with 'touch /home/hugo/test' :
> $ getfacl /home/hugo/test
> # file: test
> # owner: root
> # group: root
> user::rw-
> group::r--
> other::r--
> 
> Argh ! I would like the file to inherit its default permissions, and the acl
> from the parent directory !
> is it possible ?? if yes, could you explain me how to do such a thing ?
> 
> Thanks.
> 
> Hugo.
> 
man setfacl look for "default"
-- 
*--* Mail: lawrence@xxxxxxxx
*--* Voice: 425.739.4247
*--* Fax: 425.827.9577
*--* HTTP://www.otak-k.com/~lawrence/
--------------------------------------
- - - - - - O t a k  i n c . - - - - - 



<Prev in Thread] Current Thread [Next in Thread>