Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!orc!inews!iwarp.intel.com!gargoyle!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.unix.misc Subject: Re: Login vs. typeahead Message-ID: <1990Nov14.175817.17864@chinet.chi.il.us> Date: 14 Nov 90 17:58:17 GMT References: <1990Nov13.182623.18967@smsc.sony.com> <1990Nov13.233329.8736@athena.mit.edu> Organization: Chinet - Public Access UNIX Lines: 24 In article <1990Nov13.233329.8736@athena.mit.edu> jik@athena.mit.edu (Jonathan I. Kamens) writes: > The flushing of typeahead is meant to prevent people from doing exactly what >you describe. Allowing the first characters of your password to be displayed >on the screen as you type them is a Bad Idea (tm) and a clear security >problem. If the login program doesn't accept input typed before echoing is >turned off, then people have an incentive not to type any input before echoing >is turned off. Hmmm, then one might think the correct approach would be for getty to turn off echo as soon as it sees the terminating the login entry. Better yet would be a sensible get-in program combining the functions of the traditional getty and login. This would allow taking input in raw mode and echoing only what you want to echo without regard to timing (and some other possibilities like hashing the passwd file while no one is on-line with a long-distance call and allowing multiple backspace/erase characters). Has anyone done this? If you are providing a service that people are not obligated to use, screwing up their attempts to log in will just provide them with an incentive to go elsewhere. Les Mikesell les@chinet.chi.il.us