Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!unisoft!peritek!dig From: dig@peritek.UUCP (Dave Gotwisner) Newsgroups: comp.sources.d Subject: Re: getty/login for callback Keywords: tip getty login Message-ID: <623@peritek.UUCP> Date: 12 Apr 89 13:55:08 GMT References: <180001@mechp10.UUCP> <13853@rpp386.Dallas.TX.US> <797@twwells.uucp> <14U6Pf88Sj1010WE=r6@amdahl.uts.amdahl.com> Distribution: usa Organization: Peritek Corp., Oakland, CA Lines: 33 In article <14U6Pf88Sj1010WE=r6@amdahl.uts.amdahl.com>, shs@uts.amdahl.com (Steve Schoettler) writes: # In article <597@peritek.UUCP> dig@peritek.UUCP (Dave Gotwisner) writes: # >In article <797@twwells.uucp>, bill@twwells.uucp (T. William Wells) writes: # >> : In article <180001@mechp10.UUCP> klein@mechp10.UUCP (Greg Klein) writes: # >> : >I need the source code for getty(1) and login(1) or something similar if # >> : >a public domain version don't exist. I want to modify them to spawn ct(1) # >> : >instead of a shell to dial back the user. Please email or post (to # >> : >comp.sources.d ?). Thanks. # >> # > [stuff deleted] # # I wrote something like this by modifying the standard unix tip program. # This allowed taking advantage of a standard text file format for storing phone # numbers, baud rates, etc. This also allows operation under a variety of # modems (hayes and ventel). # The program was invoked with "ntip myname", where there was an entry for # myname in /etc/remote. # # All you have to do is find the place where tip makes the connection, # and fork a shell, setting stdin and stdout to the serial port. I # think the command I actually used inside my exec was "rlogin localhost", # because I had trouble creating a getty on the dial out line. You can # set stdin and stdout of the shell with the dup() command. This works fine, if you are calling from a computer. If I have a terminal at home (not a PC or workstation), I cannot run tip, I need some secure program running on the UNIX box that I am calling to prevent illegal logins. -- ------------------------------------------------------------------------------ Dave Gotwisner UUCP: ...!unisoft!peritek!dig Peritek Corporation ...!vsi1!peritek!dig 5550 Redwood Road Oakland, CA 94619 Phone: 1-415-531-6500