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.
|