restore tar archives with different uid?

Amos Shapira amoss at huji.ac.il
Fri Aug 24 20:36:45 AEST 1990


sa.gov>
Sender: news at shum.huji.ac.il
Distribution: comp
Lines: 26
Apparently-To: post-usenet at ucbvax.berkeley.edu

merritt at iris613.gsfc.nasa.gov (John H Merritt) writes:

:
>And in our IRIX (SGI's Unix):

>  o  Do not chown (or chgrp) files.

>Keep the owner and group that's on the tape, or don't change the
>extracted files to the owner and group that's on the tape?  You have
>to run this once to determine what it really does.

On SysV, a process can do chown/chgrp to any file which it owns (or which
belongs to its effective group ID). What tar does is to create the file
(which belongs to the user who ran tar) and chown/chgrp if the 'o' flag
wasn't specify. So in that matter, Irix is not different from other SysV-
based UN*X'es.

>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>John H. Merritt                   #  Yesterday I knew nothing,
>Applied Research Corporation      #  Today I know that.
>merritt at iris613.gsfc.nasa.gov     #

Hope this helps,
Amos Shapira
amoss at batata.huji.ac.il



More information about the Comp.unix.wizards mailing list