home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17426 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  2.3 KB

  1. Path: sparky!uunet!news.univie.ac.at!alijku11!k111114
  2. Organization: Johannes Kepler University Linz - Computing Center
  3. Date: Saturday, 21 Nov 1992 08:26:16 CET
  4. From: <K111114@ALIJKU11.BITNET>
  5. Message-ID: <92326.082616K111114@ALIJKU11.BITNET>
  6. Newsgroups: comp.os.linux
  7. Subject: telnetd ! (again ...)
  8. Lines: 59
  9.  
  10. Hi.
  11. I dunno what's going wrong ... I ftpd "new-telnet" from nic.funet.fi,
  12. (btw: why is it gone again from this site), compiled it, and tried to
  13. connect to the machine from another (Sunsparc). After the banner is shown,
  14. the connection is closed by the linux-host. I cannot find the faulty execution,
  15. since there's no core-dump produced (why not ???), and "print"s in telnetd
  16. seem to be printed at random ? Let me demonstrate: write a new telnetd
  17.  
  18. ----------< pseudo-telnetd in /usr/etc/inet/telnetd >------------------
  19.  
  20. #!/bin/sh
  21. echo "First line of File"
  22. echo "somewhere in the middle of the file"
  23. echo "End of File. Thank you for using telnet, it was a real pleasure"
  24.  
  25. ----------< End of pseudo-telnet >--------------------------------------
  26.  
  27. Okay. Now a session log.
  28.  
  29. root@kuemmel1 # cd /usr/etc/inet
  30. root@kuemmel1 # telnetd
  31. First line of File
  32. somewhere in the middle of the file
  33. End of File. Thank you for using telent, it was a real pleasure
  34.  
  35. Just to make sure I can write a shell-script doing 3 echos.
  36.  
  37. But now:
  38.  
  39. root@kuemmel1 # telnet localhost
  40. Trying...
  41. Connected to localhost.edvz.uni-linz.ac.at
  42. EFirst line of File
  43. somewhere in the middle of the file
  44. Connection closed by foreign host.
  45.  
  46. Where is the last line of the script ??? Also, I really wanna know where
  47. the "E" comes from after connecting ... I've been curious for such a long
  48. time now ... :-) (Could it probably be an incomplete line that tries to say:
  49. Escape character is '^]' ?)
  50.  
  51. I notice something fishy, too: when using the (still not working) telnetd,
  52. it happens that inetd, too, vanishes. I have to run rc.net to start it again.
  53.  
  54. Too sad the following script doesn't work:
  55.  
  56. --------< alternate telnetd >---------------
  57. #!/bin/sh
  58. echo "Welcome, Herp !"
  59. echo "---------------"
  60. /bin/sh
  61. echo "Good bye, Herp."
  62. ---------< snip snap >----------------------
  63.  
  64. Well, it does not work since telnet sends the options (WILL/WONT/IAC)
  65. directly to the shell, preceding everything you type with control stuff.
  66. therefore, /bin/sh doesn't recognize anything :-(
  67.  
  68. Herp.
  69.