home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sun / admin / 9483 < prev    next >
Encoding:
Text File  |  1992-12-16  |  3.0 KB  |  75 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!think.com!spool.mu.edu!solaria.mil.wi.us!jgreco
  3. From: jgreco@solaria.mil.wi.us (Joe Greco)
  4. Subject: Re: telnetd banner, source or hacks?
  5. Message-ID: <BzCGIt.n3t@solaria.mil.wi.us>
  6. Organization: Solaria Public Access UNIX - Milwaukee, WI
  7. References: <1992Dec11.201540.17431@welchgate.welch.jhu.edu>
  8. Distribution: usa
  9. Date: Wed, 16 Dec 1992 08:49:40 GMT
  10. Lines: 63
  11.  
  12. In comp.sys.sun.admin article <1992Dec11.201540.17431@welchgate.welch.jhu.edu>, johnj@welchgate.welch.jhu.edu (John A. Johnston) wrote:
  13. : ...
  14. :Telnetd seems to have the message it displays at connection time hard
  15. :coded in, versus how it can be done with a tty by manipulating
  16. :gettytab.
  17.  
  18. Yes, it does.  This would seem like a trivially stupid and easy hack, and it
  19. is - except for the fact that most of the networking code available
  20. currently is oriented towards BSD4.4 and requires some tweaking to work
  21. under SunOS.  Since I've vastly Berkeleyized my system, that's not too much
  22. of an issue for me.
  23.  
  24. :I'm wondering if anyone has done this bit of system customization, and
  25. :how?  The telnetd can probably be found is source form but I'm no C
  26. :whiz.
  27.  
  28. Ironically, 4.3bsd-reno (and/or the net2 sources) seem to have provided
  29. hooks for this, but *still* wire it in.  I took net2 sources (I believe) and
  30. patched them together, unwiring the braindeadedness in the process.  Some
  31. pitfalls include having to create some of the libutil library (or including
  32. it in telnetd) and having to muck around with source to getty (this can
  33. *all* be obtained from net2, I believe).
  34.  
  35. These comments all from a nearly year-old memory of what I did with the net2
  36. sources.  I did the same thing with the original Berzerkeley networking
  37. release code, but it was a lot easier because I didn't have to hack in so
  38. much stuff.
  39.  
  40. With the "91.03.25" release of telnet/telnetd, there's a directory/library
  41. called "libtelnet", and a file in it called "getent.c".  This contains the
  42. truly offensive code - a stub.  I clobbered it by copying in "gettytab.c" on
  43. top of it, which provides the gettytab-reading code.  Then of course you
  44. need to make tweaks and modifications to get Berkeley44ized code to run
  45. under SunOS.
  46.  
  47. Mine ended up looking like this....
  48.  
  49. (aurora.jgreco.p0) 2:36am ~ 27 > telnet solaria
  50. Trying 192.98.72.11...
  51. Connected to solaria.mil.wi.us.
  52. Escape character is '^]'.
  53.  
  54.  
  55. Solaria Public Access UNIX - Milwaukee, WI
  56.  
  57. Need help?  Type "help".
  58.  
  59. SunOS/BSD UNIX (solaria.mil.wi.us)
  60.  
  61. (ttyp3) login: Login timed out after 60 seconds
  62. Connection closed by foreign host.
  63. (aurora.jgreco.p0) 2:43am ~ 28 > 
  64.  
  65. I can ship you the whole ball of wax, if you wish - but I warn you it may or
  66. may not be as easy for you to install.  I've got the "util" library and a
  67. little concoction of my own called the "reno" library installed, which helps
  68. fill in library routines where Sun left off.
  69.  
  70. ... Joe
  71.  
  72. -------------------------------------------------------------------------------
  73. Joe Greco - System Administrator               jgreco@solaria.mil.wi.us
  74. Solaria Public Access UNIX - Milwaukee, WI               414/321-9287
  75.