Path: utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice!sun-spots-request From: mmorse@z.nsf.gov (Michael H. Morse) Newsgroups: comp.sys.sun Subject: (Summary) Re: Changing the login message from telnetd Keywords: Miscellaneous Message-ID: <339@brchh104.bnr.ca> Date: 20 Nov 90 18:00:01 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 36 Approved: Sun-Spots@rice.edu X-Original-Date: Wed, 31 Oct 1990 10:29:35 EST X-Refs: Original: v9n331 X-Sun-Spots-Digest: Volume 9, Issue 365, message 12 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu Thanks to all who responded to my question on how to change the login message put out by telnetd. The consensus is that the message is hardcoded into telnetd, so assuming you don't have source, you need to patch the binary to change it (ugh). This does not seem very Unix-y to me, but perhaps it has other origins. The most specific instructions to patch this came from Kurt Schreiner. I haven't actually tried them, since the benefit didn't seem worth the maintenance headaches, but here they are: | 1. look for the string "SunOS" in in.telnetd in a hexdump, remember | the byte-number of the "S". (it's 0x42d0 in my copy of in.telnetd) | 2. open in.telnetd for writing with adb (make a copy before to be save): | adb -w in.telnetd | 3. find "SunOS": it's in the datasegment, so the adb command | "