home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 22841 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!ogicse!das-news.harvard.edu!spdcc!jti.com!richb
  2. From: richb@jti.com (Richard Braun)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: known problem with email...buy why?
  5. Message-ID: <C0EEro.6vt@jti.com>
  6. Date: 5 Jan 93 20:40:35 GMT
  7. Article-I.D.: jti.C0EEro.6vt
  8. References: <1992Dec31.191131.25534@sol.UVic.CA> <mw7NwB2w165w@kf8nh.wariat.org>
  9. Sender: news@jti.com (News Admin)
  10. Organization: Jupiter Technology Inc. / Waltham, MA
  11. Lines: 19
  12. Nntp-Posting-Host: bart.jti.com
  13.  
  14. Problem:  mail file ownership isn't right
  15.  
  16. Solution:  set mail files to correct owner, mode 600, group mail
  17.  
  18. Implementation:  Using the source code from mailpak-1.3, modify mail
  19.     so it contains a seteuid call just after startup.  This call
  20.     should switch from root to that of the person running it.
  21.     Then in the send.c module, switch back to root when writing
  22.     the /usr/spool/mail file.  After writing the file, chown,
  23.     chgrp, and chmod it.  There are two places you have to do this.
  24.  
  25. Installation:  chown root /bin/mail
  26.            chmod u+s /bin/mail
  27.  
  28. This is how the mailers I've seen on SysV, AIX and SCO systems work.
  29. If there's any demand for my mods, as suggested in another posting I
  30. will make them available to the mailpak maintainer.
  31.  
  32. -rich
  33.