home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / 3b1 / 2956 < prev    next >
Encoding:
Text File  |  1992-07-27  |  2.3 KB  |  60 lines

  1. Newsgroups: comp.sys.3b1
  2. Path: sparky!uunet!darwin.sura.net!mips!pacbell.com!tandem!zorch!hico2!kak
  3. From: kak@hico2.westmark.com (Kris A. Kugel)
  4. Subject: Re: tar and chown (was: Re: Cnews and dashes)
  5. Message-ID: <Bs224L.5AG@hico2.westmark.com>
  6. Summary: version 7 docs say ONLY root
  7. Reply-To: kak@hico2.westmark.com
  8. Organization: High Country Software
  9. References: <1992Jul24.034615.10048@ceilidh.beartrack.com>
  10. Date: Mon, 27 Jul 1992 16:07:31 GMT
  11. Lines: 47
  12.  
  13.  
  14. dnichols@ceilidh.beartrack.com (Don Nichols (DoN.)) writes:
  15. : In article <Brszsw.2o3@hico2.westmark.com> kak@hico2.westmark.com (Kris A. Kugel) writes:
  16. : >I seem to recall, (and have the manuals at home to check)
  17. : >that version 7 unix allowed chown(1) to change file ownership,
  18. : >and so I think that chown(2) for version 7 was NOT reserved for root.
  19.  
  20. :     Well, I have the manuals *RIGHT HERE*.  From my copy of _UNIX
  21. : Programmer's Manual_ ( Volume 1), revised and expanded edition, published by
  22. : Holt Rinehart and Winston, Copyright 1983, 1979, Bell Telephone Laboratories,
  23. : Incorporated:
  24. : Chown (1), third paragraph under DESCRIPTION heading:
  25. :     Only the super-user can change owner or group, in order to simplify
  26. :     as yet unimplemented accounting procedures.
  27. : Chown (2), DESCRIPTION:
  28. :     The file whose name is given by the null-terminated string pointed
  29. :     to by _name_ has its _owner_ and _group_ changed as specified.  Only
  30. :     the super-user may execute this call, because if users were able to
  31. :     give files away, they could defeat the (nonexistent) file-space
  32. :     accounting procedures.
  33.  
  34. ...
  35.   
  36. :     If you still have access to that v7 system, (and it is still
  37. : running), I suggest that you check the man page for chown(2), and check
  38. : whether chown(1) has been made suid-root.
  39.  
  40. Don's right, I checked my manual, and it's exactly as he quotes.
  41.  
  42. It's possible that I was confused with other earlier versions and clones
  43. (I worked on version 6, an early version of Coherent (v7 clone),
  44. System III and V.0)
  45.  
  46. I THOUGHT I remembered having a problem chown'ing a file
  47. with BSD varients, and I remember it being a rude annoyance,
  48. that I'd not expected to have problems chown'ing.  But I was
  49. on a fair number of flavors of unix around that time (~1983),
  50. so I couldn't say for sure just which one annoyed me so.
  51.  
  52. Anyhow, my apologies for spreading false information.
  53.  
  54. Kris A. Kugel    908-842-2707
  55. hico2!kak    kak@hico2.westmark.com
  56.