Can't log in right on console to accounts in CAPS.

Guy Harris guy at auspex.auspex.com
Mon May 13 03:47:29 AEST 1991


>I think the login programs checks for uppercase accounts on consoles (although
>I'm not sure).

No, it's "getty" that checks for uppercase accounts; "getty" isn't
involved in "rlogin" or "telnet", which is why, when you log in over the
Ethernet, the system doesn't assume you're stuck with an uppercase-only
terminal, but when you log in on the console, which does involve
"getty", it does.

"getty" does so on most UNIX systems.  The theory is that 1) nobody
would create an account with capital letters on a UNIX system, because
it doesn't buy you much and obliges you to use the shift key to refer to
the name of the account and 2) given that, the system can assume that,
if you type capital letters to "getty"s prompt, it's because you're on
an uppercase-only terminal, in which case it maps the upper-case letters
to lower-case on input and puts the tty driver in "this is an
uppercase-only terminal" mode, which means that upper-case letters typed
on input are turned into lower-case letters (unless preceded by a
backslash), lower-case letters generated on output are turned into
upper-case letters, and upper-case letters generated on output are
preceded with a backslash to distinguish them from lower-case letters. 
In addition, some special characters (e.g., '{' and '}') that are often
not present on upper-case only ("half-ASCII") terminals are also mapped
to '\(' and '\)' on output, and supported on input as '\(' and '\)' as
well.

>I'm pretty sure this once worked.

I'm pretty sure you're mistaken, unless you were running a "getty" that
can have that feature disabled, and had disabled it...

>Any ideas?

Try turning the "lc" capability on in the "/etc/gettytab" entries used
by the console and for all the other "real" terminals on your machine;
it should tell the system that those terminals support lower-case and
that an upper-case letter from that terminal is supposed to be an
upper-case letter.

Or don't create accounts with ALL-CAPS names, as UNIX, as one person
said, "tends not to listen when you shout at it".



More information about the Comp.unix.questions mailing list