Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ucbvax!huji.ac.il!amoss From: amoss@huji.ac.il (Amos Shapira) Newsgroups: comp.unix.wizards Subject: Re: restore tar archives with different uid? Message-ID: Date: 24 Aug 90 10:36:45 GMT References: <1740@yenta.alb.nm.us> <1674@quando.quantum.de> Sender: daemon@ucbvax.BERKELEY.EDU Lines: 31 sa.gov> Sender: news@shum.huji.ac.il Distribution: comp Lines: 26 Apparently-To: post-usenet@ucbvax.berkeley.edu merritt@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@iris613.gsfc.nasa.gov # Hope this helps, Amos Shapira amoss@batata.huji.ac.il