Re: ACL Question .

 
baiju_3
Esteemed Contributor

ACL Question .

Hi ,

I have copied a file system to one aonther using gtar . Now in the copy , some files does not have ACL set .

Is there any way to set the ACL for the new files, just by specifying the original file as a reference .


Thanks,
BL.
Good things Just Got better (Plz,not stolen from advertisement -:) )
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: ACL Question .

Shalom,

As far as I know tar type utilities do not retain ACL information. I would recommend running the commands to set ACL after untarring the file on the target machine.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeff_Traigle
Honored Contributor

Re: ACL Question .

Maybe by piping a getacl command to a setacl command...

getacl old_file | setacl -f - new_file
--
Jeff Traigle
A. Clay Stephenson
Acclaimed Contributor

Re: ACL Question .

Probably your least evil option is to use fbackup/frecover rather than gtar as fbackup will restore the ACL metadata unless specifically disabled via the -A option.
If it ain't broke, I can fix that.
Jeff_Traigle
Honored Contributor

Re: ACL Question .

And fbackup/frecover could be used to instead of tar since it preserves the ACLs. tar and cpio don't.
--
Jeff Traigle
baiju_3
Esteemed Contributor

Re: ACL Question .

Thanks.
Good things Just Got better (Plz,not stolen from advertisement -:) )