home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aux
- Path: sparky!uunet!sun-barr!ames!nsisrv!jagubox!jim
- From: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
- Subject: Re: tar
- Message-ID: <1097@jagubox.gsfc.nasa.gov>
- Lines: 31
- Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
- Nntp-Posting-Host: jagubox.gsfc.nasa.gov
- Reply-To: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
- Organization: NASA/Goddard Space Flight Center
- References: <DPASSAGE.92Sep11205455@eden.CS.Berkeley.EDU> <1095@jagubox.gsfc.nasa.gov> <DPASSAGE.92Sep12134327@eden.CS.Berkeley.EDU>
- Date: Mon, 14 Sep 1992 09:52:21 GMT
-
- dpassage@eden.CS.Berkeley.EDU (David Paschich) writes:
-
- >But I do want to speak to this:
-
- >In article <1095@jagubox.gsfc.nasa.gov>,
- > jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes:
-
- > The answer is that if you want the owner/group ID's to be that of
- > the running process and _not_ that of the original archive, you must
- > add the '-o' option... Think about it; if tar always reset the UID/GID to
- > the running process, using it for system backup _and recovery_ would
- > be a royal pain in the butt... after restoring files root would need to
- > completely restore all the UIDs/GIDs if he/she even knew what they were...
-
- >On BSD-type systems I've used (including DEC's Ultrix, Sequent's
- >Dynix, and even (shudder) Apollo's Domain/OS), on extraction tar
- >creates the files with the UID of the current process _unless_ that
- >current process is running as root, in which case it creates them with
- >the UID and GID given in the tar file.
-
- The big reason for the non-BSD=type behavior is to make it easier for
- a non-root user (like an "operator") to perform system-wide backups and
- restores.
-
- >And actually, now that I think about it the ability to give away files
- >isn't all that bad a thing...
- --
- Jim Jagielski | "This is supposed to be a happy occasion.
- jim@jagubox.gsfc.nasa.gov | Let's not bicker and argue about who
- NASA/GSFC, Code 734.4 | killed who."
- Greenbelt, MD 20771 |
-