Path: utzoo!attcan!uunet!jarthur!usc!elroy.jpl.nasa.gov!decwrl!ucbvax!hplabs!hpfcso!hpfcmgw!rocky From: rocky@hpfcmgw.HP.COM (Rocky Craig) Newsgroups: comp.sys.hp Subject: Re: telnet and getty questions Message-ID: <1080124@hpfcmgw.HP.COM> Date: 7 Feb 90 11:28:04 GMT References: <16390@boulder.Colorado.EDU> Organization: HP Fort Collins, CO Lines: 31 >> 2) I'd like getty to print the /etc/issue message to ptys when someone >> attemps to telnet (and rlogin if possible) to our machines. > /etc/getty doesn't run when you telnet or rlogin to a remoe machine, so > you really should be saying "I'd like to get rlogind/telnetd to print..." > But you can't do that, either, without hacking the source. Well, how about trying this: 1. Write the following shell script and call it "/etc/rlogind.issue": /bin/cat /etc/message exec /etc/rlogind 2. Change /etc/inetd.conf to invoke /etc/rlogind.issue when the rlogin port is hit. inetd connects stdin and stdout of the invoked process to the socket, so the "cat" should work. There are three unknowns in this solution: a. Will inetd invoke a shell script? Methinks it does. b. Look at the posting time on this response. Which implies... c. I may have dreamed this entire conversation :-) Rocky Craig Hewlett-Packard Workstation Group, Marketing Event Technical Support rocky%hpfcmr@hplabs.hp.com This article does not represent the official position of the Hewlett-Packard Company. The above data is provided for informational purposes only. It is supplied without warranty of any kind.