[Info-vax] Sharing a BG device with another user process

VAXman- at SendSpamHere.ORG VAXman- at SendSpamHere.ORG
Fri Dec 20 12:23:48 EST 2013


In article <l91ntq$mdi$1 at dont-email.me>, "Jeffrey H. Coffield" <jeffrey at digitalsynergyinc.com> writes:
>I am reviewing the code in our JDBC driver for RMS and feel that I am 
>missing something in the log in sequence. I have a listener process that 
>accepts a network connection, authenticates the username/password and 
>starts a detached network process under the users account. The problem 
>(I think) is that in order for the server process running under the 
>users account to assign a channel to SYS$NET, I have to install the 
>server image with SHARE privilege. Otherwise I get a SYSTEM-W-DEVALLOC 
>error on the assign.

SYS$NET, WRT DECnet, has special meaning and a special definition when
it's define by a DECnet network connection.  Take a careful look as what
you get when you use TCP/IP. ;)



>It is important that the server run in the context of the user as our 
>driver provides a method to read logicals and symbols set in the users 
>LOGIN.COM.

Yup.  Quite simple.  Map DCL.EXE/DCLTABLE.EXE, then callback to DCL with
the file specification of the user's LOGIN.COM.  All symbols and logicals
will be defined in the NETWORK process according to what the user has in
their LOGIN.COM.  Assumes the user has F$mode().EQS."NETWORK" conditional
coding correctly established in the LOGIN.COM.



>Is there a "correct" way to do this (like FTP or Telnet)? I realize that 
>some of the code is undocumented.

Yes. ;)


-- 
VAXman- A Bored Certified VMS Kernel Mode Hacker    VAXman(at)TMESIS(dot)ORG

Well I speak to machines with the voice of humanity.



More information about the Info-vax mailing list