[mod.computers.vax] vms 4.2 set uic program

steve@elroy.UUCP (Steve C. Carpenter) (08/06/86)

I am looking for a program that will change uic's
at any givin time during a process. Of course the
program requires cmkrnl priv which will then have
to be installed as a know image.  The purpose is
for keeping tabs on who is using which project via
the accounting utility.  Projects meaning specific
project directories used by several different users.
So far, I have found no system service under vms
that will do such a task but I understand there is
a way to poke the bits in the process control block.





		Steve Carpenter
		...!seismo!cit-vax!elroy!steve
		elroy!steve@csvax.caltech.edu

gwalker@SPCA.BBN.COM (Gail Rubin Walker) (08/07/86)

I'm sure there are programs that can do what you want.  (I don't
happen to have one.) But I suggest that you think about logical name
tables a bit first. In vms 4, logical name tables have protections,
and the setup for which of the system's many group logical name tables
is the one your process points to is done when you login and doesn't
change even if you change your uic group.  (Your group logical name
table is that pointed to by LNM$GROUP, itself a logical and probably
in your job logical name table.)

So typically if you run a program that changes uic, you
then cannot read your own job logical name table (I don't
remember if you can even read the process one or not) and
you also cannot read a group logical name table unless you
in the program try to reassign which group logical name
table you point to, to go with the new group you may now
be in. And there is an additional gotcha there - group
logical name tables are created,after boot time, the
first time someone logs into that group. So even if
you reassign which is your group logical name table, you
cannot guarantee its existence. (Workaround - have a
batch job that runs after booting in each group whose
logical name table you need to have exist.)

As you can see, with enough effort you can solve the
group logical name table problem. I don't know of
any way to solve the job one. The last time I looked
into it, there was no way to specify protections on
system created logical name tables like the job one; and
if there was, and you could set them world:RW, to guarantee
everyone RW access to their own job logical name table when
they changed uic's, you'd also allow every user RW access to
every other users job logical name table!

Perhaps there is an accounting program out there that helps
you resolve things in some other way. If this is info you
already knew, sorry I explained it at such length.

Good luck! 

-- Gail Walker
gwalker@bbn-spca