[fa.info-vax] callable login

info-vax@ucbvax.ARPA (03/21/85)

From: Jeffrey R. Del Papa <DP@MIT-MC>


  Does anyone out there have subroutines to do the equivalent of
loginout? (eg: take username and password, validate same, and
set process to that username, with apropriate privs, quotas, and
default disk)  there was this program on one of the sig tapes that
did that, but I can't find the source...  I am still using version
3 of vms.

					thanx in advance
					jeff

info-vax@ucbvax.ARPA (03/22/85)

From: ihnp4!stolaf!lacroix@BERKELEY (LaCroix, Les)

The DECUS Program Library has a submission called SLY which is
an enhanced version of the routine SETUSER as found in the VMS
source fiche.  It has a CLD interface, and verifies that the
requested username is in the authorization file.  It does no
additional checking, and therefore requires that the process have
CMKRNL.

There are some inherent problems with changing your username on
the fly.  Authorization for instance (checking primary and secondary
passwords, primary and secondary days, and all those other good
things).  Also, weird things happen if you change your username
from the context of a subprocess, or if you have any subprocess hanging
around.  Then there's system accounting to consider.  It's a real can
of worms.

Personally, I like SET HOST 0 for temporary username changes, and
LOGOUT/NOHANG for permanent ones.  Also I like the /USER qualifier
to the version 4 PRINT and SUBMIT commands; we probably wouldn't have
done SLY if /USER had been around before.

Les LaCroix 		(USENET) ...{ihnp4|decvax}!stolaf!lacroix