Date: Tue, 7 Feb 1995 16:58:58 +0100 (MET) From: j@uriah.sax.de (J Wunsch) To: dgy@seagull.rtd.com (Don Yuniskis) Cc: freebsd-hackers@freefall.cdrom.com Subject: Re: user id's Message-ID: <199502071558.QAA23634@bonnie.tcd-dresden.de> In-Reply-To: <199501310235.TAA21841@seagull.rtd.com> from "Don Yuniskis" at Jan 30, 95 07:35:00 pm
next in thread | previous in thread | raw e-mail | index | archive | help
As Don Yuniskis wrote: | | Re: FBSD 1.1.5.1R (but I suspect *all* *BSD's) | I (unfortunately) mix upper and lower case in user id's. | I've noticed that a few id's which consist solely of uppercase | characters are prompted for a password (even tho' a password is | not required for the user) ONLY ON THE FIRST ATTEMPT. A subsequent | attempt (after "illegal password") will accept the uppercase login. | I imagine this is due to the support for "single-case" only | terminals (in which the uppercase chars are converted to lowercase | and, since no such user exists, the "Password:" prompt is issued). Yes, it is. It's one of the biggest bogosities of 4.4BSD that the whole kernel has been moved towards termios, but getty still remained using sgtty-style. The above behaviour is intention, look around line 338 in /usr/src/libexec/getty/main.c. If the incoming name has been found to be all upper-case, it's converted to all lower-case unless the LC option is set in gettytab (meaning the terminal is *known* to support lower-case). The sgtty flag LCASE is set, but since the kernel operates at termios level which doesn't know about such old braindeadness, this flag is dropped from the terminal setting quickly. Any subsequent user login works since only the first query is done by getty, then control is being passed to the login program. The whole mess should be rewritten... (should you volunteer, i'm glad to commit your stuff, Don :--) -- cheers, J"org work: --- no longer --- private: joerg_wunsch@uriah.sax.de Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199502071558.QAA23634>