Path: utzoo!utgpu!water!watmath!clyde!att!icus!limbic!gil
From: gil@limbic.UUCP (Gil Kloepfer Jr.)
Newsgroups: comp.os.vms
Subject: Re: Group Logicals at Startup
Summary: Write a program to do it
Message-ID: <161@limbic.UUCP>
Date: 14 Jul 88 06:00:40 GMT
References:  <375@stsci>
Organization: ICUS Software Systems, Islip, NY
Lines: 40

In article <375@stsci> morrow@stsci.EDU (Andy Morrow) writes:
|>From article , by mdeleo@lynx.northeastern.EDU:
|>>     I was wondering if anyone out there knows who to set-up a group
|>> logical "automatically" so that it has the following parameters:
|>> 	[kernal] [shareable,group]
|>> 	[protection=(RWED,R,R,)] [Owner=[5,0]]
|>>    		-->>Name::: (LNM$Group_000005)
|>> 	I can get it to put in everything but the [kernal].
|>> 		Michael Deleo
|>> 		 mdeleo@lynx.northeastern.edu
|>> 		 acm_md@nuhub.northeastern.edu

The way I have seen best to define group logicals on bootup is to make a
command procedure with a lot of $ DEFINE/GROUP's in it, then run it as a
detached process, with /UIC=[xxx,yyy] where xxx is the group ID you wish
to define group logicals for, like:

   $ RUN/DETACH/UIC=[xxx,yyy]/INPUT=your-command-file SYS$SYSTEM:LOGINOUT

	(please no flames for errors in syntax, I have no orange binders
	 in front of me on this one! :-)

The next problem is getting [Kernel] set on your logical name.  The only
way of doing this that I know of is to make a small program which calls
the define logical (I don't remember the name, you can look it up in the
system services manual) service with the kernel mode bit set.  DEC used
this in an (unnamed) software package as a license "protection" scheme.
I just was wondering how to get rid of the *&^% logical name at the
time!  The program you use to do this is relatively simple.  Anyhow, you
would run this program which defines your kernel-mode logical from the
command file mentioned above.

Hope this helps!

+------------------------------------+----------------------------------------+
| Gil Kloepfer, Jr.                  | Net-Address:                           |
| ICUS Software Systems              | {boulder,talcott}!icus!limbic!gil      |
| P.O. Box 1                         | Voice-net: (516) 968-6860              |
| Islip Terrace, New York  11752     | Othernet: gil@limbic.UUCP              |
+------------------------------------+----------------------------------------+