home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.univie.ac.at!alijku11!k111114
- Organization: Johannes Kepler University Linz - Computing Center
- Date: Saturday, 21 Nov 1992 08:26:16 CET
- From: <K111114@ALIJKU11.BITNET>
- Message-ID: <92326.082616K111114@ALIJKU11.BITNET>
- Newsgroups: comp.os.linux
- Subject: telnetd ! (again ...)
- Lines: 59
-
- Hi.
- I dunno what's going wrong ... I ftpd "new-telnet" from nic.funet.fi,
- (btw: why is it gone again from this site), compiled it, and tried to
- connect to the machine from another (Sunsparc). After the banner is shown,
- the connection is closed by the linux-host. I cannot find the faulty execution,
- since there's no core-dump produced (why not ???), and "print"s in telnetd
- seem to be printed at random ? Let me demonstrate: write a new telnetd
-
- ----------< pseudo-telnetd in /usr/etc/inet/telnetd >------------------
-
- #!/bin/sh
- echo "First line of File"
- echo "somewhere in the middle of the file"
- echo "End of File. Thank you for using telnet, it was a real pleasure"
-
- ----------< End of pseudo-telnet >--------------------------------------
-
- Okay. Now a session log.
-
- root@kuemmel1 # cd /usr/etc/inet
- root@kuemmel1 # telnetd
- First line of File
- somewhere in the middle of the file
- End of File. Thank you for using telent, it was a real pleasure
-
- Just to make sure I can write a shell-script doing 3 echos.
-
- But now:
-
- root@kuemmel1 # telnet localhost
- Trying...
- Connected to localhost.edvz.uni-linz.ac.at
- EFirst line of File
- somewhere in the middle of the file
- Connection closed by foreign host.
-
- Where is the last line of the script ??? Also, I really wanna know where
- the "E" comes from after connecting ... I've been curious for such a long
- time now ... :-) (Could it probably be an incomplete line that tries to say:
- Escape character is '^]' ?)
-
- I notice something fishy, too: when using the (still not working) telnetd,
- it happens that inetd, too, vanishes. I have to run rc.net to start it again.
-
- Too sad the following script doesn't work:
-
- --------< alternate telnetd >---------------
- #!/bin/sh
- echo "Welcome, Herp !"
- echo "---------------"
- /bin/sh
- echo "Good bye, Herp."
- ---------< snip snap >----------------------
-
- Well, it does not work since telnet sends the options (WILL/WONT/IAC)
- directly to the shell, preceding everything you type with control stuff.
- therefore, /bin/sh doesn't recognize anything :-(
-
- Herp.
-