home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 22146 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.5 KB  |  59 lines

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