home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / mail / elm / 3208 < prev    next >
Encoding:
Text File  |  1992-11-08  |  2.0 KB  |  45 lines

  1. Newsgroups: comp.mail.elm
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uwm.edu!daffy!spock.cs.wisc.edu!quale
  3. From: quale@spock.cs.wisc.edu (Doug Quale)
  4. Subject: Re: ELM 2.4PL6 - Big problem! Changing permissions on /usr/mail
  5. Message-ID: <1992Nov7.001144.15937@daffy.cs.wisc.edu>
  6. Sender: news@daffy.cs.wisc.edu (The News)
  7. Reply-To: quale@saavik.cs.wisc.edu
  8. Organization: Undergraduate Projects Lab, UW-Madison
  9. References: <Bx9BHq.E1x@mach1.wlu.ca> <848@rc1.vub.ac.be>
  10. Date: Sat, 7 Nov 1992 00:11:44 GMT
  11. Lines: 32
  12.  
  13. In article <848@rc1.vub.ac.be> apardon@rc1.vub.ac.be (Antoon Pardon) writes:
  14. >In article <Bx9BHq.E1x@mach1.wlu.ca>, derwin@mach2.wlu.ca (Daryl Erwin) writes:
  15. >|> HELP! HELP!
  16. >|> 
  17. >|> I think there is a big problem with elm 2.4 (not necessarily just pl6).
  18. >|> 
  19. >|> Our directories in /usr/mail/ (users mail directories) group permissions
  20. >|> are being chamed from 'mail' to some other group (their own).
  21. >
  22. >We have had similar problems here. The problem however was not elm
  23. >but a buggy NFS. The problems was that when a file was opened with
  24. >the CREAT flag over NFS and you where the owner of the file the group of
  25. >the file was changed to the gid of the process even if the file already 
  26. >existed. As a workaround (This works only on bsd systems I think) we
  27. >set the setgid bit on the spooldirectory to indicate that created files
  28. >should get the gid of the spool instead that of the process. It works
  29. >for the moment.
  30. >
  31.  
  32. If this is indeed the problem, it is a bug in Elm.  BSD and SYSV systems
  33. set the gid of newly created files differently.  In BSD, the gid = gid
  34. of parent directory, in SYSV gid = gid of creating process, unless the
  35. the parent directory is sgid when the BSD behavior is used.  POSIX permits
  36. either behavior.  If the gid of a newly created directory is important
  37. (and it certainly is here!), the only reliable thing to do is explicitly
  38. chown it to the desired group after the open.
  39.  
  40.  
  41.  
  42. -- 
  43. Doug Quale
  44. quale@saavik.cs.wisc.edu
  45.