Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!elroy.jpl.nasa.gov!jato!csi.jpl.nasa.gov!mwette From: mwette@csi.jpl.nasa.gov (Matt Wette) Newsgroups: comp.unix.admin Subject: Re: Network Logins Message-ID: <1991May28.174505.10471@jato.jpl.nasa.gov> Date: 28 May 91 17:45:05 GMT References: <1991May28.135719.13805@cs.utk.edu> Sender: news@jato.jpl.nasa.gov Reply-To: mwette@csi.jpl.nasa.gov (Matt Wette) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 30 Nntp-Posting-Host: mr-ed.jpl.nasa.gov Here what I can suggest if you're willing to use rlogin instead of telnet. You may be able to cook up something from it. Say the host machine is mach0 and the remote machine is mach1. In the /etc/passwd file on mach0 I put in the following entry: mach1::9999:999:remoteLogin:/usr/local:/usr/local/etc/rxlogin /usr/local has a .hushlogin file so that /etc/motd doesn't get printed. The file /usr/local/etc/rxlogin is the following: #!/bin/sh machine=$USER echo -n "$machine login: "; read username exec /usr/ucb/rlogin $machine -l $username Now I approach mach0 and type "mach1" at the login prompt, get a prompt for a login name on mach1 and type my name (matt), then get the password prompt from the remote machine. Here's what the screen should look like: login mach0: mach1 login mach1: matt Password: Matt -- _________________________________________________________________ Matthew R. Wette | Jet Propulsion Laboratory, 198-326 mwette@csi.jpl.nasa.gov | 4800 Oak Grove Dr, Pasadena,CA 91109 -----------------------------------------------------------------