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

  1. Newsgroups: comp.mail.elm
  2. Path: sparky!uunet!caen!spool.mu.edu!dsinc!syd
  3. From: syd@DSI.COM (Syd Weinstein)
  4. Subject: Re: ELM 2.4PL6 - Big problem! Changing permissions on /usr/mail
  5. Message-ID: <1992Nov7.033752.12791@DSI.COM>
  6. Reply-To: syd@DSI.COM
  7. Organization: Datacomp Systems, Inc.  Huntingdon Valley, PA
  8. References: <Bx9BHq.E1x@mach1.wlu.ca> <848@rc1.vub.ac.be> <1992Nov7.001144.15937@daffy.cs.wisc.edu>
  9. Date: Sat, 7 Nov 1992 03:37:52 GMT
  10. Lines: 70
  11.  
  12. quale@spock.cs.wisc.edu (Doug Quale) writes:
  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. Ok, I've got a problem here, and I've kept my big trap shut until now.
  40.  
  41. Perhaps its semanics, perhaps it isn't.  But, the original post
  42. talked about Elm changing the permissions of directories in /usr/mail.
  43. Elm doesn't deal with or touch directories in /usr/mail, only files.
  44. So did the original user (Daryl Erwin) mean directories or files.
  45.  
  46. The second person talked about files that already existed and NFS
  47. changing the group of an existing file.  Now, actually, Elm probably
  48. did its usual copy to temp and copy back, so especially with NFS, where
  49. the cross link would fail, it would be a copy back and not a hard link,
  50. the original group id should not be changed.
  51.  
  52. But again, we go back to the master case, Elm copies the file over and
  53. then links the new copy back into /usr/mail.  Elm does indeed do a
  54. chown(file, user, group) back to the same user and group as the
  55. original file.   (See leavembox for the code, its called
  56. restore_file_stats.  So again, normally it should work (note that the
  57. case where setgid directories is indeed needed, BSD, is the case where
  58. only root can do the chown system call.)
  59.  
  60. So, we are still down to the original problem, which no one has bothered
  61. to track down..... Why is sometimes the group id being changed, and is Elm
  62. doing it?
  63.  
  64. Now, as my own systems two cents, We run SVR4 on our mailhost here,
  65. and the mail spool is
  66.  
  67. drwxrwxr-x   3 root     mail         512 Nov  6 22:34 /var/mail
  68.  
  69. no, setgid there, and the mail files have never been changed from group
  70. mail by Elm or by smail 3.1 (my MTA of choice).   So, this site hasn't
  71. seen the problem.
  72.  
  73. So, my two cents: Someone who is experiencing the problem, you'll
  74. have to investigate further as to what it is.
  75.  
  76.  
  77. -- 
  78. ========================================================================
  79. Sydney S. Weinstein, CDP, CCP          Elm Coordinator - Current 2.4PL06
  80. Datacomp Systems, Inc.                 Projected 3.0 Release: ??? ?,1994
  81. syd@DSI.COM or dsinc!syd      Voice: (215) 947-9900, FAX: (215) 938-0235
  82.