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 Summary: program to go between init and getty Message-ID: <597@peritek.UUCP> Date: 30 Mar 89 13:18:39 GMT References: <180001@mechp10.UUCP> <13853@rpp386.Dallas.TX.US> <797@twwells.uucp> Organization: Peritek Corp., Oakland, CA Lines: 42 In article <797@twwells.uucp>, bill@twwells.uucp (T. William Wells) writes: > In article <13853@rpp386.Dallas.TX.US> jfh@rpp386.Dallas.TX.US (John F. Haugh II) 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. > > For this, if you want it done right, modify login(1). What happens > is this: getty reads the first line typed by the user. No No. This requires Kernel source and is definitely non portable. > It passes that > off to login, which prompts for the password. If, however, the > username/password is incorrect, login does *not* go back to getty, it > just prompts for the user name itself. So you'd better do your > modifications to login. > > : A getty clone was recently posted in alt.sources. It appears to be a > : beta release so I expect to see a full-use version in some other > : newsgroup near you soon ... We had something like this at my old job. It was done without modifying any UNIX software. They had a program which was inserted between init and getty on the dialup line. Both system 5 and BSD provide the sysadmin to specify something to be called by init on a line. What it did was to maintain a list of authorized dialin users and phone numbers (all encrypted, of course). You phoned in, typed a "login name", it looked in the file, hung up the phone, and called back the number associated with the "login name". It then exec'ed getty. The program originally ran on an ancient Version 6 system (PDP 11/70), and was converted to run on Pyramid's system without too much difficulty. If there is interest in this, let me know (E-mail only), I will try to obtain a copy of it from my old company (no guarantees). -- ------------------------------------------------------------------------------ Dave Gotwisner UUCP: ...!unisoft!peritek!dig Peritek Corporation ...!vsi1!peritek!dig 5550 Redwood Road Oakland, CA 94619 Phone: 1-415-531-6500