[comp.os.vms] Followup: Setting SYSPASSWORD on NVA terminals

bwp@utgpu.UUCP (08/24/87)

This is a followup to my earlier query about how to turn the SYSPASSWORD
attribute on for NV terminals.

Several people mentioned setting this attribute on via the SYSGEN
parameter TTY_DEFCHAR2. This turns the attribute on for all terminals
which is not ok at my site since we have LT type terminals which we
do not want SYSPASSWORD on for and there is no legitimate way
to alter LT terminals before they are used. I do have a small program
that will zap the SYSPWD bit on for the NV terminal template (NVA0)
but I have found a solution that avoids using this kernel-mode hack.

A "clean" solution involves using a slightly altered version of
SYS$EXAMPLES:PSI_X29_DESTINATION.MAR. This program as distributed with PSI
prompts for a password before LOGINOUT is run and clears the call if
the password is not typed correctly. I chopped all this prompting and checking
out of the program and simply turned on the SYSPWD bit by adding
one new instruction after the BICL2 below the ACCEPT label:

	BISL #TT2$M_SYSPWD,TERM_CHAR+8	; turn on SYSPASSWORD attribute

This program, when run in the context of a process created via a DECnet
object and the X29-server works like a charm. LOGINOUT is run by magic
and the caller sees things exactly as though connected to a local terminal.

	Corot Reason, PROMIS Systems Corp, Toronto.
	(416) 364-5361x428