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