home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / vmsnet / internal / 1261 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  3.2 KB

  1. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!merlin!cerberus!winkle.bhpese.oz.au!robbie
  2. From: robbie@winkle.bhpese.oz.au
  3. Newsgroups: vmsnet.internals
  4. Subject: Re: Booting MicroVAX 3400 using non-system UIC
  5. Message-ID: <1992Sep2.112130.252@winkle.bhpese.oz.au>
  6. Date: 2 Sep 92 11:21:30 +1000
  7. References: <01GO8KCZ8CCY001SUR@VAXF.COLORADO.EDU>
  8. Organization: BHP Information Technology, Newcastle
  9. Lines: 69
  10.  
  11. In article <01GO8KCZ8CCY001SUR@VAXF.COLORADO.EDU>, DWING@UH01.Colorado.EDU (Dan Wing) writes:
  12. > Eric J. Seeger, eseeger@ssdc.sterling.com, writes:
  13. >>Is there a way to boot up a MicroVAX 3400 running VMS V5.4 so that a
  14. >>site specific definition can reside in a different UIC group instead of
  15. >>the system accounts group.  More specifically, I am trying to define
  16. >>several specific logicals that I want to have reside in a specific
  17. >>accounts group table, and I want to define them during the startup procedure.
  18. >>What I am finding is that even if I 'set uic' to the account I want them
  19. >>to reside in they are still ending up under the system account during startup.
  20. > ...  Now, even if you pointed it to the correct logical name
  21. > table, or specified the table's name with DEFINE/TABLE, it wouldn't work
  22. > because the table doesn't exist.
  23. >      
  24.  
  25. There is an easier way to create the group logical name table at startup.
  26. Try the following...
  27.  
  28.     RUN /UIC=[<UIC in group>] SYS$SYSTEM:LOGINOUT.EXE
  29.  
  30. The group logical name table is created by the first run process in that
  31. group. This does a process creation which does very little other than
  32. create the logical name table. The UIC doesn't even have to be a valid
  33. account, as long as it is in the correct group.
  34.  
  35. eg. JOE_SMITH has a UIC [LAZY_BUMS,JOE_SMITH] (or [3010,253]).
  36.  
  37.     To create his group logical name table, do a RUN/UIC=[LAZY_BUMS] ...
  38.     or RUN/UIC=[3010] ...
  39.  
  40.     The group logical name table can be accessed via
  41.     
  42.         DEFINE/TABLE=LNM$GROUP_003010
  43.  
  44. The following is some code to determine from a NAME type UIC which group
  45. table to use (i.e. How to get from [LAZY_BUMS] to LNM$GROUP_003010)
  46.  
  47. $!
  48. $!***************************************************************************
  49. $Get_Group_LNM_String:  SUBROUTINE
  50. $!***************************************************************************
  51. $!
  52. $!      P1 == Specified Group
  53. $!
  54. $   SET NOON
  55. $!
  56. $   GroupString == "LNM$GROUP_000000"
  57. $   UICIdent    =  F$IDENTIFIER("''P1'","NAME_TO_NUMBER")
  58. $   UICString   =  F$FAO("!%U",UICIdent) - "[" - "]"
  59. $   UICString   =  F$EXTRACT(0,F$LOCATE(",",UICString),UICString)
  60. $   StringLen   =  F$LENGTH(GroupString) - F$LENGTH(UICString)
  61. $   GroupString == "''F$EXTRACT(0,StringLen,GroupString)'''UICString'"
  62. $!
  63. $   EXIT
  64. $   ENDSUBROUTINE
  65.  
  66. The subroutine could be called and logicals defined as follows:
  67.  
  68. $   CALL Get_Group_LNM_String "LAZY_BUMS"
  69. $   DefLazyBums := "DEFINE/TABLE=''GroupString'"
  70. $   DefLazyBums DECW$USER_DEFAULTS SYS$LOGIN:, LAZYBUMS_DATA:[DECW$DEFAULTS]
  71.  
  72. -- 
  73. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  74. Rob Spencer, BHP Information Technology           |   Sorry, but my .sig
  75. Newcastle, Australia        Voice: +61 49 40 1673 |   is on .sig leave!
  76. Bits: robbie@winkle.bhpese.oz.au                  |
  77. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  78.