Thanks John,
I think the explaination of what happened is in the chacl man page:
An ACL that is not a minimum ACL, that is, one that speci-
fies a user or group other than the file's owner or
owner's group, must contain a mask entry: chacl
u::rwx,g::r-x,o::r--,u:guest:r--,m::r-x file1 file2
So you cannot just setup the acl for one user and expect it to work out
the rest of the acl from scratch, once you put an acl on a file, all access
to the file will be controlled via the acl.
Steve
> You need to determine what the ACLs are already on the directory before you c
> an
> 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
|