On 16:52 16 May 2002, Anand Buddhdev <[EMAIL PROTECTED]> wrote: | On Thu, May 16, 2002 at 08:14:14AM -0600, Trevor wrote: | > > I suggest you add the 'p' switch as well, to preserve permissions and | > > ownerships. That is, after all, the problem Jim is trying to solve. [...] | > If you do a tar -zcf name_of_file.tar.gz /dir/* it will preserve the | > permissions. So, isn't the "p" switch optional? | | Without 'p', file ownership will not be preserved.
Yes they will ... on the tar file creation side. Tar _always_ records ownership and permissions in the archive. You do need the "p" on unpack. It tells the unpacking tar to honour the ownerships in the archive when unpacking. Otherwise it will use your own identity (so that you own the result). This is a common source of confusion. -- Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/ Get your stinking paws off me, you damn dirty sheepdog. - Not Al Crawford <[EMAIL PROTECTED]> _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list