home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / mail / sendmail / 3114 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.6 KB  |  34 lines

  1. Newsgroups: comp.mail.sendmail
  2. Path: sparky!uunet!gatech!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!mp.cs.niu.edu!rickert
  3. From: rickert@mp.cs.niu.edu (Neil Rickert)
  4. Subject: Re: Funny behavior when mailing to programs
  5. Message-ID: <1993Jan6.213322.22842@mp.cs.niu.edu>
  6. Organization: Northern Illinois University
  7. References: <1993Jan5.210513.6819@msc.cornell.edu>
  8. Date: Wed, 6 Jan 1993 21:33:22 GMT
  9. Lines: 23
  10.  
  11. In article <1993Jan5.210513.6819@msc.cornell.edu> rob@lynx.msc.cornell.edu.UUCP (Rob Vaughn,302 Thurston Hall,50637,2730428) writes:
  12.  
  13. >catmsgs: "|/bin/cat >> /c/src/documents/msgs"
  14.  
  15. >I finally worked out that when the "prog" mailer is used, sendmail is
  16. >executing the program as the user sending the mail, unless that user is
  17. >running as 'root' in which case it runs the program as 'daemon'.  When I
  18. >changed the ownership of the file above to 'daemon' the problems went
  19. >away.
  20.  
  21. That is essentially correct.  However if the mailing results from
  22. forwarding via a '.forward', then the permissions of the owner of the
  23. '.forward' are used.  Likewise, if the alias is a ':include:/path/to/file'
  24. and the included file has a program alias, the permissions of the owner
  25. of the included file are used.  However daemon still replaces root.
  26. This is for extra safety.
  27.  
  28. If you want more control over permission during delivery, I recommend
  29. you install a delivery agent such as 'deliver' (from
  30. comp.sources.reviewed).  This will also do file locking while delivering
  31. to a file - cat won't, so the file could be clobbered it two messages
  32. arrive at about the same time.
  33.  
  34.