xfs
[Top] [All Lists]

Re: acl's

To: David W Dougall <davidd@xxxxxxxxxx>
Subject: Re: acl's
From: Timothy Shimmin <tes@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 26 Apr 2001 12:01:52 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <Pine.LNX.4.33.0104250831070.23104-100000@twilight.ee.byu.edu>; from davidd@ee.byu.edu on Wed, Apr 25, 2001 at 08:36:45AM -0600
References: <Pine.LNX.4.33.0104250831070.23104-100000@twilight.ee.byu.edu>
Sender: owner-linux-xfs@xxxxxxxxxxx
Hi David,

On Wed, Apr 25, 2001 at 08:36:45AM -0600, David W Dougall wrote:
> I have just downloaded and compiled the linux-xfs cvs code as of April 24.
> I am having trouble setting acl's on the xfs filesystems.  Whenever I run
> the chacl command, I get the following error:
> 
> # chacl u:david:r-x .
> chacl: error setting access acl on ".": Invalid argument
> 

As Steve and John pointed out, you do not have a valid ACL.
The ACL you gave only contains a USER entry (ACE)
(you also need at least USER_OBJ, GROUP_OBJ, OTHER and MASK ACEs
if you want to have a USER ACE).

However, I was surprised by the error message that you received. 
It turns out that a libacl function, acl_from_text()
is happy with partial ACLs, with a subset of correct ACEs.
This meant that you received the error msg of "Invalid argument"
when calling acl_set_file().
With my chacl(1) fix, you should now get:
    chacl: "u:david:r-x" is an invalid ACL specification.
which will hopefully make it a bit more apparent what the error is. 
Previously, you'd only get this if one of the ACEs was invalid.

Cheers,
Tim.

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