xfs
[Top] [All Lists]

RE: acl's

To: David W Dougall <davidd@xxxxxxxxxx>
Subject: RE: acl's
From: John Trostel <jtrostel@xxxxxxxxxx>
Date: Wed, 25 Apr 2001 10:58:54 -0400 (EDT)
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <Pine.LNX.4.33.0104250831070.23104-100000@xxxxxxxxxxxxxxxxxxx>
Organization: Connex
Reply-to: jtrostel@xxxxxxxxxx
Sender: owner-linux-xfs@xxxxxxxxxxx
You need to determine what the ACLs are already on the directory before you can
reset them with 'chacl'.  See below how I can add in user 'jt' with rw access
to my XFS partition /mnt/xfs_part.

1. get the existing ACL on the directory

[root@jtsdell xfs_part]# chacl -l .
. [/u::rwx,g::rwx,o::rwx,m::rwx]

2. modify the ACL to include user 'jt' with 'rw' access

[root@jtsdell xfs_part]# chacl u::rwx,g::rwx,o::rwx,m::rwx,u:jt:rw .

3. recheck the ACL to see if it is changed

[root@jtsdell xfs_part]# chacl -l .
. [u::rwx,g::rwx,o::rwx,m::rwx,u:jt:rw-/u::rwx,g::rwx,o::rwx,m::rwx]

On 25-Apr-2001 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
> 
> I have included acl support in the kernel.  Do I need to give a special
> mount option to have acl support?  Do I have to have a special option when
> I create the xfs filesystem?  I am unfortunately clueless about most of
> the internals of xfs.
> Please advise.
> --David Dougall

-- 
John M. Trostel
Linux OS Engineer
Connex
jtrostel@xxxxxxxxxx

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