home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / shell / 5311 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.8 KB  |  40 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!usc!wupost!spool.mu.edu!yale.edu!yale!admiral!jprekopa
  3. From: jprekopa@admiral.uucp (Jeff Prekopa)
  4. Subject: HELP!! Having problems with NEWGRP in Xenix (Bourne) shell
  5. Reply-To: jprekopa@admiral.uucp (Jeff Prekopa)
  6. Organization: The Grid/Waffle BBS, 203-661-2873, -1279, -0450, -2967
  7. Date: Thu, 7 Jan 1993 15:09:34 GMT
  8. Message-ID: <Nmi1wB1w164w@admiral.uucp>
  9. Sender: waffle@admiral.uucp (Waffle BBS User)
  10. Lines: 28
  11.  
  12. I'm trying to set up a "postmaster" type arrangement for reading 
  13. email-boxes on my system. My approach was to set the postmaster handled 
  14. mailboxes to group postmstr, with rw-rw--w- permissions so group members 
  15. can access the box.
  16.  
  17. The problem is that I don't want the user's primary group to be postmstr, 
  18. and I wanted to use newgrp in a shell to change the user's group to 
  19. postmstr, read the mailbox, then change back to the users primary group.
  20.  
  21. something like ...        newgrp postmstr
  22.                           elm -f /usr/spool/mail/mailbox
  23.                           newgrp
  24.  
  25. newgrp executes as  "exec newgrp", and terminates my shell script after 
  26. changing group, before the "elm -f" line. Is there a way to pass the next 
  27. command to execute on the newgrp line? Is there another way to invoke 
  28. newgrp so it doesn't run as an exec newgrp?
  29.  
  30. For that matter, can anyone suggest a better way to give two or more 
  31. users access to the same mailbox, without making the box public?
  32.  
  33. Please respond via email. Thanks in advance!
  34.  
  35. --
  36. jprekopa%admiral.uucp@yale.edu (Jeff Prekopa) <yale!admiral!jprekopa>
  37. The Admiral's Public UNIX - Greenwich, CT - System Administrator: Doug Fields
  38. (HST/V32) (203)661-2873 -- (PEP/V32) -1279 -- (V32) -0450 -- (V29/MNP6) -2967
  39. >FREE!< Unix shell accounts, Usenet access, and Internet-style mail available
  40.