Hi Shanker,
On Wed, Jun 27, 2001 at 07:33:44PM +0530, Shanker Balan wrote:
>
> I just got down the RHL 7.1 XFS installer and converted one of my
> machines to XFS yday to run Samba 2_2 CVS with ACL support. The Samba +
> ACL part is working fine now.
>
> I am however quite unclear about the POSIX ACL part for the OS i am
> running - Linux. What do i have to do further to get the extended
> attributes working for Linux like its mentioned here
> http://acl.bestbits.at/about.html.
>
The "bestbits" site has patches for Linux to provied extended attributes
and Posix ACLs for ext2 (patches have been made for ext3 as well I
believe).
The code for extended attributes and ACLs in XFS are provided as
part of the distribution and are quite different.
The kernel ACL code needs to be configured in (CONFIG_FS_POSIX_ACL=y),
but I presume you must have done this as you said you have the
SAMBA+ACL stuff working.
The XFS distribution has different ACL user tools.
The Posix suggested tools of getfacl and setfacl are not provided.
The IRIX-ported equivalent ACL tool is chacl(1) (see man page).
So if you want to set or get an ACL on a file, use chacl(1).
With recent changes to XFS' libacl, one can actually use
the bestbits fileutils patch. For example, this will patch
ls(1) so that it shows if a file has an associated ACL
(see http://acl.bestbits.at/fileutils.html).
With the help of Juergen Hasch (Hasch@xxxxxxxxxxx), this was made
possible.
BTW, both Juergen (Hasch@xxxxxxxxxxx) and John Trostel (jtrostel@xxxxxxxxxx)
have suggested fixes for getting ACLs working with Samba (thanks guys),
and would probably provide help if you run into problems in this
area. :)
And as for extended attributes, there is no standard interface
for them yet. In XFS we use attr(1) to set and get extended attributes
(see attr(1) man page for more info).
Cheers,
Tim.
|