xfs
[Top] [All Lists]

RE: Problems setting ACL with setfacl

To: "Nathan Scott" <nathans@xxxxxxx>
Subject: RE: Problems setting ACL with setfacl
From: "David Wasylciw" <david@xxxxxxxxxxxx>
Date: Thu, 6 Dec 2001 03:21:46 -0400
Cc: <linux-xfs@xxxxxxxxxxx>
Importance: Normal
In-reply-to: <20011206112820.B50483@wobbly.melbourne.sgi.com>
Reply-to: <david@xxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
Nathan, thanks for the help that got the problem exactly. Any chance of this
being tossed in the docs somewhere before the new libacl comes up as I could
see others running into it quite easily?

Thanks again,
Dave

-----Original Message-----
From: owner-linux-xfs@xxxxxxxxxxx [mailto:owner-linux-xfs@xxxxxxxxxxx]On
Behalf Of Nathan Scott
Sent: Wednesday, December 05, 2001 8:28 PM
To: David Wasylciw
Cc: linux-xfs@xxxxxxxxxxx
Subject: Re: Problems setting ACL with setfacl


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>