From:	SMTP%"RELAY-INFO-VAX@CRVAX.SRI.COM" 26-MAY-1993 14:00:11.10
To:	EVERHART
CC:	
Subj:	Re: rlogin from ucx VMS to UNIX host

From: terry@spcvxb.spc.edu (Terry Kennedy, Operations Mgr.)
X-Newsgroups: comp.os.vms
Subject: Re: rlogin from ucx VMS to UNIX host
Message-Id: <1993May25.182318.6063@spcvxb.spc.edu>
Date: 25 May 93 18:23:18 EDT
Followup-To: comp.os.vms
Organization: St. Peter's College, US
Lines: 88
To: Info-VAX@kl.sri.com
X-Gateway-Source-Info: USENET

In article <BECKETT-250593094723@sdvmac1.cc.vanderbilt.edu>, BECKETT@ctrvax.Vanderbilt.Edu (Robert Beckett) writes:
> In article <1993May25.095150.9467@imec.be>, elsen@imec.be (Marc Elsen) wrote:
>>   How can I use VMS rlogin to do an automatic login 
>>   on a UNIX box (using .rhosts).
> The problem is that DCL converts all arguments to uppercase.  Unix is case
> sensitive and generally uses lowercase.  The way I use to get around this
> problem is to redefine RLOGIN (and RSH, too).

  Additionally, UCX's rlogin has the unfortunate urge to truncate any user
name it gets its hands on to 8 characters, so if you have a Unix that doesn't
have the 8-character username restriction, rlogin won't work if your username
is > 8 characters. Back when I used UCX, I developed the following fix for
this problem. Note that the offsets have probably changed in later V2.0 kits,
and it may possibly have been fixed (I don't use UCX any more, so I can't
tell).

	Terry Kennedy		Operations Manager, Academic Computing
	terry@spcvxa.bitnet	St. Peter's College, Jersey City, NJ USA
	terry@spcvxa.spc.edu	+1 201 915 9381

  This *unsupported* and *unofficial* patch corrects a problem with RLOGIN
truncating usernames to eight characters. Please save the original image
and restore it before appling any Digital patches or updates to UCX.
 
  PATCH  Version 5-05    20-June-1991

IMAGE FILE BEING PATCHED:	"USER6:[SYSPROG.TERRY.JUNK]UCX$RLOGIN.EXE;1"
JOURNAL FILE:			"USER6:[SYSPROG.TERRY.JUNK]UCX$RLOGIN.JNL;1"
DATE/TIME OF PATCH:		19-SEP-1992 00:44:51.19

%PATCH-I-NOLCL, image does not contain local symbols
%PATCH-I-NOGBL, some or all global symbols not accessible
PATCH>repl/inst 4a1e
OLD>  "clrb b^8(r4)"
OLD>  exit
NEW>  "nop"
NEW>  "nop"
NEW>  "nop"
NEW>  exit
old:	00004A1E:  CLRB    B^08(R4)
new:	00004A1E:  NOP     
new:	00004A1F:  NOP     
new:	00004A20:  NOP     
PATCH>repl/instr 4a40
OLD>  "clrb b^8(r4)"
OLD>  exit
NEW>  "nop"
NEW>  "nop"
NEW>  "nop"
NEW>  exit
old:	00004A40:  CLRB    B^08(R4)
new:	00004A40:  NOP     
new:	00004A41:  NOP     
new:	00004A42:  NOP     
PATCH>help set eco
PATCH>help set eco par
PATCH>set eco 97
PATCH>update
%PATCH-I-WRTFIL, updating image file USER6:[SYSPROG.TERRY.JUNK]UCX$RLOGIN.EXE;2
PATCH>exit

  This *unsupported* and *unofficial* patch corrects a problem with RLOGIN
"eating" the default escape character (tilde/~). With this patch installed,
the escape character is completely disabled. Note that with this patch in-
stalled, if you hang a RLOGIN session, you will have to log in again and do
a STOP/ID to release your connection.  Please save the original image and
restore it before appling any Digital patches or updates to UCX.

  PATCH  Version 5-05    20-June-1991

IMAGE FILE BEING PATCHED:	"SYS$COMMON:[SYSEXE]UCX$RLOGIN.EXE;2"
JOURNAL FILE:			"SYS$COMMON:[SYSEXE]UCX$RLOGIN.JNL;2"
DATE/TIME OF PATCH:		13-NOV-1992 12:53:02.45
ECO LEVELS SET:		97

%PATCH-I-NOLCL, image does not contain local symbols
%PATCH-I-NOGBL, some or all global symbols not accessible
PATCH>repl/inst 3ef0
OLD>  "movb #7e,l^0329c"
OLD>  exit
NEW>  "movb #0ff,l^0329c"
NEW>  exit
old:	00003EF0:  MOVB    #7E,L^0000329C
new:	00003EF0:  MOVB    #0FF,L^0000329C
PATCH>set eco 98
PATCH>update
%PATCH-I-WRTFIL, updating image file SYS$COMMON:[SYSEXE]UCX$RLOGIN.EXE;3
PATCH>exit

