*BSD News Article 10320


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA7710 ; Mon, 25 Jan 93 12:20:29 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!spool.mu.edu!agate!dog.ee.lbl.gov!hellgate.utah.edu!fcom.cc.utah.edu!cs.weber.edu!terry
From: terry@cs.weber.edu (A Wizard of Earth C)
Subject: Re: telnetd without login check
Message-ID: <1993Jan24.003430.12759@fcom.cc.utah.edu>
Sender: news@fcom.cc.utah.edu
Organization: Weber State University  (Ogden, UT)
References: <br.pct.13.727678893@RLG.Stanford.EDU>
Date: Sun, 24 Jan 93 00:34:30 GMT
Lines: 42

In article <br.pct.13.727678893@RLG.Stanford.EDU> br.pct@RLG.Stanford.EDU (PCT) writes:
>
>Hi,
>
>  I have a special situation where I want to have the 386/Sun Sparc-2 
>running 386BSD/SunOS 4.1.1 to be a telnet server front end to a mainframe 
>telnet server.But I only want to login once, so I have to find out how to 
>disable loginbanner & all from the front end telnet server, so that the 
>telnet connectiongoes all the way thru, then the mainframe generate a login 
>banner instead.
>
>  Is it possible in 386BSD? Without getting the telnetD code & hack it, 
>by just  fixing the inetd.conf to run telnetD with -a none or ttytab or 
>whatever?

Nope.  You have to hack telnetd.  The best way to do this would be to hack
it to take arguments of what to run, and a flag to determine if you need to
run code that you will steal from rlogind as well (ie: the device setup
normally done by login).  This will let you run bbs software or any other
software you want to by specifying a line in /etc/inetd.conf with your
new telnetd with it's arguments.  For backward compatability, the lack
of arguments should cause it to run as it currently does.

An alternative might be to get the "socket" code ("socket" is a program to
allow shell-level manipulation of sockets) and put it on the port you will
telnet to for this service.  This assumes that you aren't running the old
telnet code on the originator or the old telnetd code on the target, and
that the target is always a telnetd.  If this is the case, then options
negotiations can ake place normally; otherwise they will fail.


					Terry Lambert
					terry@icarus.weber.edu
					terry_lambert@novell.com
---
Any opinions in this posting are my own and not those of my present
or previous employers.
-- 
-------------------------------------------------------------------------------
                                        "I have an 8 user poetic license" - me
 Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
-------------------------------------------------------------------------------