home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / aux / 3442 < prev    next >
Encoding:
Internet Message Format  |  1992-09-12  |  1.6 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!agate!dpassage
  2. From: dpassage@eden.CS.Berkeley.EDU (David Paschich)
  3. Newsgroups: comp.unix.aux
  4. Subject: Re: tar
  5. Date: 12 Sep 92 13:43:27
  6. Organization: Organization?  Who cares?  You just gotta say "Go Bears!"
  7. Lines: 26
  8. Message-ID: <DPASSAGE.92Sep12134327@eden.CS.Berkeley.EDU>
  9. References: <DPASSAGE.92Sep11205455@eden.CS.Berkeley.EDU> <1095@jagubox.gsfc.nasa.gov>
  10. NNTP-Posting-Host: eden.cs.berkeley.edu
  11. In-reply-to: jim@jagubox.gsfc.nasa.gov's message of Sat, 12 Sep 1992 13:48:59 GMT
  12.  
  13. Thanks for the help everyone; I obviously need to remember that A/UX
  14. is NOT BSD and read the man pages.  :)
  15.  
  16. But I do want to speak to this:
  17.  
  18. In article <1095@jagubox.gsfc.nasa.gov>, 
  19.     jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes:
  20.  
  21.    The answer is that if you want the owner/group ID's to be that of
  22.    the running process and _not_ that of the original archive, you must
  23.    add the '-o' option... Think about it; if tar always reset the UID/GID to
  24.    the running process, using it for system backup _and recovery_ would
  25.    be a royal pain in the butt... after restoring files root would need to
  26.    completely restore all the UIDs/GIDs if he/she even knew what they were...
  27.  
  28. On BSD-type systems I've used (including DEC's Ultrix, Sequent's
  29. Dynix, and even (shudder) Apollo's Domain/OS), on extraction tar
  30. creates the files with the UID of the current process _unless_ that
  31. current process is running as root, in which case it creates them with
  32. the UID and GID given in the tar file.
  33.  
  34. And actually, now that I think about it the ability to give away files
  35. isn't all that bad a thing...
  36.  
  37. David Paschich
  38.  
  39.