Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!seismo!ukma!dftsrv!iris613!merritt From: merritt@iris613.gsfc.nasa.gov (John H Merritt) Newsgroups: comp.unix.wizards Subject: Re: restore tar archives with different uid? Message-ID: <3192@dftsrv.gsfc.nasa.gov> Date: 22 Aug 90 17:15:31 GMT References: <1740@yenta.alb.nm.us> <1674@quando.quantum.de> Sender: news@dftsrv.gsfc.nasa.gov Reply-To: merritt@iris613.UUCP (John H Merritt) Distribution: comp Organization: Goddard Space Flight Center Climate and Radiation Branch Lines: 22 In article <1674@quando.quantum.de> omerzu@quando.quantum.de (Thomas Omerzu) writes: >that depends on the version of 'tar' you're using. >A BSD-based tar does do that by default, whereas an ATT-tar >has got the 'o'-option. > >TFM reads: > o Causes extracted files to take on the user and group > identifier of the user running the program rather > than those on the tape. > 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. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ John H. Merritt # Yesterday I knew nothing, Applied Research Corporation # Today I know that. merritt@iris613.gsfc.nasa.gov #