home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / mail / sendmail / 3050 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.7 KB  |  44 lines

  1. Newsgroups: comp.mail.sendmail
  2. Path: sparky!uunet!gatech!darwin.sura.net!news.udel.edu!udel!intercon!psinntp!monymsys!sonyd1.Broadcast.Sony.COM!blilly.UUCP!bruce
  3. From: bruce@blilly.UUCP (Bruce Lilly)
  4. Subject: Re: Trouble writing to a file
  5. References: <FULL_GL.92Dec19060740@dolphin.pts.mot.com>
  6. Organization: Bruce Lilly
  7. Date: Mon, 21 Dec 92 15:50:57 GMT
  8. Message-ID: <1992Dec21.155057.1303@blilly.UUCP>
  9. Reply-To: lilb@sony.compuserve.com (Bruce Lilly)
  10. Lines: 32
  11.  
  12. In article <FULL_GL.92Dec19060740@dolphin.pts.mot.com> glen_fullmer@pts.mot.com wrote:
  13. >I put an alias in /etc/aliases like:
  14. >
  15. >    rnews: "/usr/spool/news/incoming/xxx"
  16. >
  17. >and send mail to rnews and it responds with a error message
  18. >that it can not write to a file, permission denied.  I change the
  19. >permissions of the file and all directories above it and still get the
  20. >message.  I even change it to "/tmp/xxx" and I also try a .forward to
  21. >a file with the same results!  Any ideas for a fix?
  22.  
  23. With UIUC/IDA sendmail, you need to make sure that the file permissions:
  24. a)    have the suid bit set
  25. b)    have the sgid bit set
  26. c)    do not have any execute bits set
  27.  
  28. Try chmod ug+s,a-x /usr/spool/news/incoming/xxx (as root or the file owner).
  29.  
  30. Note that although the combination of sgid bit set and group execute bit not
  31. set indicates that mandatory file locking should be used (on System V and
  32. its derivatives), no file locks are set by the code, so it is possible for
  33. two or more processes to write to the file at the same time, resulting in
  34. gibberish.
  35.  
  36. >The mail server is on a Sparc running 4.1.3 without NIS.
  37.  
  38. The above might or might not work on your machine, depending on the version
  39. of sendmail which it runs.
  40.  
  41. -- 
  42.     Bruce Lilly        blilly!bruce@Broadcast.Sony.COM
  43.                     ...uunet!sonyusa!sonyd1!blilly!bruce
  44.