home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / sysadmin / 7139 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.6 KB  |  51 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!news
  3. From: eps@futon.SFSU.EDU (Eric P. Scott)
  4. Subject: Re: Help with email error: can't get working directory
  5. Message-ID: <1992Dec19.133030.21135@csus.edu>
  6. Sender: news@csus.edu
  7. Reply-To: eps@cs.sfsu.edu
  8. Organization: San Francisco State University
  9. References: <1992Dec14.191716.1237@dakota.hsd.com>
  10. Date: Sat, 19 Dec 1992 13:30:30 GMT
  11. Lines: 38
  12.  
  13. In article <1992Dec14.191716.1237@dakota.hsd.com> krarick@hsd.com
  14.     (Kevin C. Rarick) writes:
  15. >Any user of group "other" on my network gets the following bounced mail message
  16. >when trying to send email.
  17.  
  18. >can't get working directory; will try to continue
  19. >uux failed. code -1
  20.  
  21. sendmail changes its working directory to its queue directory
  22. (usually /usr/spool/mqueue).
  23.  
  24. Here are the initial permissions on /usr/spool/mqueue:
  25.  
  26. drwxrwx---  2 root     wheel       1024 ... /usr/spool/mqueue
  27.  
  28. sendmail typically runs as root.daemon until it calls a mailer.
  29. Then it normally changes to agent.daemon (unless the mailer
  30. specifies the "S" flag), which causes it to lose *all* access
  31. to the spool directory!  Then when you exec uux,
  32.  
  33. ---s--s--x  1 uucp     daemon     24576 ... /usr/bin/uux
  34.  
  35. the effective permissions become uucp.daemon.
  36.  
  37. The simplest approach is probably just to do
  38.     # chmod a+x /usr/spool/mqueue
  39.  
  40. Since the sensitive queue files won't allow access to other, this
  41. shouldn't pose a serious security threat.
  42.  
  43. If you're really paranoid, another way would be to change the P=
  44. to point to a shell script containing something like
  45.  
  46.     #!/bin/sh -f
  47.     cd /usr/spool/uucppublic
  48.     exec /usr/bin/uux "$@"
  49.  
  50.                     -=EPS=-
  51.