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
|