xfs
[Top] [All Lists]

Re: Problems setting ACL with setfacl

To: David Wasylciw <david@xxxxxxxxxxxx>
Subject: Re: Problems setting ACL with setfacl
From: Nathan Scott <nathans@xxxxxxx>
Date: Thu, 6 Dec 2001 11:28:20 +1100
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <NCBBLONLNDADNABFPMJJKECGDPAA.david@xxxxxxxxxxxx>; from david@xxxxxxxxxxxx on Wed, Dec 05, 2001 at 01:50:51AM -0400
References: <NCBBLONLNDADNABFPMJJKECGDPAA.david@xxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
hi,

On Wed, Dec 05, 2001 at 01:50:51AM -0400, David Wasylciw wrote:
> Hello All,
> I've recently installed kernel 2.4.16 with the latest XFS all together patch
> and of course compiled in ACL support. I'm running Redhat 6.2 and have
> installed all the latest acl programs and libraries but for some reason when
> I attempt to add a user to the ACL list for a file I get the following
> error:
> setfacl: file: Resulting ACL
> `,user::rw-,user:dwasyl:rw-,mask::---,other::r--': Invalid entry type at
> entry 1

This error message is pretty unhelpful - it will get better in
the future (when we have a different libacl).

> This was generated with the command: setfacl -m u:dwasyl:rw testfile
> I checked through the archives and saw something about perhaps needing to
> have the permissions listed as rw- but that did not seem to help and
> generated the exact same error.
> 
> It would be much appreciated if anyone could help point me in the right
> direction and if any more information is needed just let me know.

You probably don't have a mask entry in the ACL.  Try something
like this:
$ setfacl -m m::rwx testfile
$ setfacl -m u:dwasyl:rw- testfile

The above recipe works for me.  Andreas' man pages are quite
extensive and have a section describing the mask entry - see:
http://acl.bestbits.at/man/acl.5.html

cheers.

-- 
Nathan


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