Christopher
Had you considered using CPIO instead of tar ?
That should insure that the permissions in the archive supersede the
file system settings.
-- -- Bill Morita On 4/9/11, Christopher Howard <christopher.howard@frigidcode.com> wrote: > Can tar overwrite files, but make the new files (I'm presuming they are > deleted and recreated) have the same ownership/permissions as the old > (overwritten) files? I.e., rather than using the ownership/permissions > from the archive, or simply using the standard permissions for newly > created files. I went through the man/info pages a time or two, but I'm > still a bit unclear as to what precise switch voodoo would make this > happen. (Assuming it is even capable of doing that.) > > Something I run into when doing upgrades on software packages in Web > directories: I set special permissions on certain files, but I lose a > lot of them when I overlay the old files with the new files from the > upgrade package. > > -- > frigidcode.com > theologia.indicium.us > --------- > To unsubscribe, send email to <aklug-request@aklug.org> > with 'unsubscribe' in the message body. > > --------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.Received on Sat Apr 9 21:50:36 2011
This archive was generated by hypermail 2.1.8 : Sat Apr 09 2011 - 21:50:36 AKDT