home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!charon.amdahl.com!amdahl!rtech!sgiblab!spool.mu.edu!uwm.edu!linac!unixhub!slacvx.slac.stanford.edu!fairfield
- From: fairfield@slacvx.slac.stanford.edu
- Subject: Re: Mailbox access
- Message-ID: <1993Jan27.114727.1@slacvx.slac.stanford.edu>
- Lines: 47
- Sender: news@unixhub.SLAC.Stanford.EDU
- Organization: Stanford Linear Accelerator Center
- References: <20303.2b5bb282@ul.ie> <1k628cINN2ei@gap.caltech.edu>
- Date: Wed, 27 Jan 1993 19:47:27 GMT
-
- In article <1k628cINN2ei@gap.caltech.edu>,
- carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) writes:
-
- [in response to the probelm of allowing different processes
- to access mailboxes]
-
- | then you're probably running afoul of the fact that the logical name for the
- | mailbox (assuming it's a temporary mailbox; I'd hate to think that you might
- | have PRMMBX priv) is, by default, placed in your job logical name table, which
- | is not easily accessible to processes outside of your own job. If that's the
- | problem, then you'll have to find some other way for the process that creates
- | the mailbox to communicate the name of the mailbox to the other process.
-
- A CRUDE solution to this (which I DON'T recommend) is to give both
- processes GRPNAM privilege and create the logical pointing to the
- mailbox in the LNM$GROUP. (Do they need GROUP privilege as well?)
-
- A better solution, which we've used successfully for several years,
- is to GRANT the users in question some identifier, then create a
- special logical name table to hold the mailbox logical names, and
- put an ACL on the table allowing READ+WRITE to the identifier in
- question. Here's a real world example (the "unwashed masses" get
- the identifier $_TPC_USE):
-
- $!+
- $! Create OASMBX logical name table and give read/write access
- $! to $_TPC_USE holders.
- $!-
- $ Create /Name_Table /Executive /Parent=Lnm$System_Directory -
- /Attributes=Supersede /Protection=(S:RWED,O:RWED,G:R,W:R) -
- LNM$OASMBX
- $!
- $ Set Acl /Object_Type=Logical_Name_Table /Acl=( -
- (IDENTIFIER=$_TPC_USE, ACCESS=READ+WRITE) )-
- LNM$OASMBX
- $!
-
- BTW, we use this for mailbox communication between the interactive
- user and his/her batch job...
-
- -Ken
- --
- Dr. Kenneth H. Fairfield | Internet: Fairfield@Slac.Stanford.Edu
- SLAC, P.O.Box 4349, MS 98 | DECnet: 45537::FAIRFIELD (45537=SLACVX)
- Stanford, CA 94309 | BITNET Fairfield@Slacvx
- ----------------------------------------------------------------------------
- These opinions are mine, not SLAC's, Stanford's, nor the DOE's...
-