home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / admin / 37 < prev    next >
Encoding:
Text File  |  1992-12-17  |  2.1 KB  |  45 lines

  1. Newsgroups: comp.sys.sgi.admin
  2. Path: sparky!uunet!spool.mu.edu!agate!ames!sgi!fido!zola!zuni!anchor!olson
  3. From: olson@anchor.esd.sgi.com (Dave Olson)
  4. Subject: Re: tar, nfs, and restricted_chown
  5. Message-ID: <tmsb6c4@zuni.esd.sgi.com>
  6. Sender: news@zuni.esd.sgi.com (Net News)
  7. Organization:  Silicon Graphics, Inc.  Mountain View, CA
  8. References: <Bz882q.L2.2@cs.cmu.edu>
  9. Date: Thu, 17 Dec 92 06:20:59 GMT
  10. Lines: 33
  11.  
  12. In <Bz882q.L2.2@cs.cmu.edu> cline+@cs.cmu.edu (Kenneth Cline) writes:
  13.  
  14. | A user logged into a Sun4 was unable to extract tarred files (created
  15. | by another user) to a disk mounted on our SGI machine.  Apparently,
  16. | SunOs tar chowns the new file to the old user before reading its
  17. | contents, and subsequent operations fail due to ownership conflict.
  18. | The fix was to build a new kernel for the SGI with restricted_chown
  19. | set to 1.  Now, "tar x..." works fine, but I would like to know if
  20. | this is a bug in SunOs tar (maybe, calling chown prematurely), an SGI
  21. | bug (which doesn't seem as likely), or simply conflicting features.
  22. | I ask, because it is annoying to ship tar archives to other sites and
  23. | require the recipient to be super-user to extract the files, but in
  24. | general that seems to be necessary.  (n.b. rebuilding the kernel is a
  25. | bit much to ask the recipient).  Is there another solution short of
  26. | running homogeneous networks?
  27.  
  28. It is basicly because tar was written under V7 unix where only
  29. the superuser could give files away, and it seemed silly to add
  30. a check in tar to see if you were superuser.  When the S3/S5
  31. versions of unix decided that they didn't like that model, a number
  32. of things broke, including tar.  More recent versions of tar do
  33. the check to see if you are superuser, as some other postings
  34. mentioned.
  35.  
  36. By the way, the problem only occurs when directories are created,
  37. in most cases, since the chown is done after the file is extracted,
  38. and therefore there are no problems with regular files.
  39. --
  40. Let no one tell me that silence gives consent,  |   Dave Olson
  41. because whoever is silent dissents.             |   Silicon Graphics, Inc.
  42.     Maria Isabel Barreno                        |   olson@sgi.com
  43.