H HGLOGIN, SYSTEM_MANAGEMENT, Log in to another account without a password   HGLOGIN (Hunter's LOGIN)= Copyright  1997, 1998, Hunter Goatley.  All rights reserved.    ------------------------------E HGLOGIN is a rewrite and enhancement of the GLOGIN utility written by ; Anthony C. McCracken, Northern Arizona University, in 1992.   B HGLOGIN uses the PTD$ routines supplied by VMS and may not work on older versions of VMS. ------------------------------  F HGLOGIN lets privileged users log in to a named account without havingC to know the password for that account.  A process running under the A target username is created.  Its input and output are read from a 0 pseudo-terminal, which is controlled by HGLOGIN.  @ Unlike BECOME and SWAP, the process created by HGLOGIN is a fullA process, with all the privileges, rights identifiers, quotas, DCL E symbols, logical names, etc., as well as anything else that is set up  in the target user's LOGIN.COM.   A HGLOGIN requires the target username as a parameter.  If there is A other text on the line, HGLOGIN enters "single command mode." The C remaining text is passed to the new process to be executed by DCL.  B When the command execution completes, the process is automatically7 logged out and control returns to the original process.        INSTALLING HGLOGIN ------------------ To build the executable:  H * Execute the following command to produce HGLOGIN.EXE from the supplied   binaries:    	$ @LINK.COM  G * If you have the BLISS sources and the MMS description file available, -   use MMK to compile and link the executable.   H Once you have the HGLOGIN.EXE file, you can set up a DCL foreign command to run HGLOGIN:   + 	$ hglogin :== $disk:[directory]HGLOGIN.EXE   ' To log in as user SYSTEM, simply issue:    	$ hglogin system   E The effect will be similar to using SET HOST 0 or TELNET to log in to 
 local system.   F To execute a single command under the target username, issue a command like:    	$ hglogin system mail  B In the example above, you will be logged in as SYSTEM and the MAILF command will be executed in the SYSTEM process.  When you QUIT or EXIT< MAIL, you're automatically logged out of the SYSTEM process.   HGLOGIN and SET TERM/INQUIRE ----------------------------> HGLOGIN's single-command mode will not work properly if eitherB SYLOGIN.COM or the target user's LOGIN.COM include the command SETA TERMINAL/INQUIRE.  Normally, the commands sent to the process are 6 purged when the SET TERMINAL/INQUIRE command executes.  F In cases like this, you must use the /PROMPT qualifier to tell HGLOGINC what the DCL prompt will be once the process is logged in.  HGLOGIN B will then wait for the given prompt (which defaults to "$") before$ sending its commands to the process.  % 	$ hglogin/prompt="What?" system mail   @ There is also a /NOQUIET qualifier that can be given to overrideD HGLOGIN's "quiet mode" in single-command mode.  HGLOGIN/NOQUIET will( display all the output from the process.  D IF you try to use single-command mode and never see any output, typeF LOGOUT and then use HGLOGIN/NOQUIET to see the output and prompt.  YouA can then use /PROMPT to force HGLOGIN to wait for the DCL prompt.   P -------------------------------------------------------------------------------- CONTACTING THE AUTHOR   H MadGoat LOGIN was written by Hunter Goatley.  Comments, suggestions, andE questions about this software can be directed to this e-mail address:    	goathunter@PROCESS.COM   P -------------------------------------------------------------------------------- COPYRIGHT NOTICE  B This software is COPYRIGHT  1997, 1998 HUNTER GOATLEY. ALL RIGHTSK RESERVED. Permission is granted for not-for-profit redistribution, provided K all source and object code remain unchanged from the original distribution, - and that all copyright notices remain intact.   
 DISCLAIMER  H This software is provided "AS IS".  The author and Process Software makeA no representations or warranties with repsect to the software and J specifically disclaim any implied warranties of merchantability or fitness for any particular purpose. 