Xref: utzoo comp.sys.att:4020 unix-pc.general:1263 comp.unix.questions:8857
Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!humu!uhccux!richard
From: richard@uhccux.uhcc.hawaii.edu (Richard Foulk)
Newsgroups: comp.sys.att,unix-pc.general,comp.unix.questions
Subject: Re: username problem
Keywords: unixpc multiple console window getty cuserid(3C) getlogin(3C)
Message-ID: <2255@uhccux.uhcc.hawaii.edu>
Date: 17 Aug 88 15:16:07 GMT
References: <578@proxftl.UUCP> <4490@cbmvax.UUCP>
Reply-To: richard@uhccux.UUCP (Richard Foulk)
Organization: University of Hawaii
Lines: 13

} The passwd command is calling getlogin() or cuserid() which, upon noticing
} that you are logged in on a window, searches /etc/utmp for the FIRST entry
} for ANY window.  It finds the "LOGIN" process before it finds your "aaron"
} entry and returns that.
} 
} It's an unfortunate side-effect of multiple console gettys.  It could be
} fixed, but no one's done it yet.  I doubt AT&T will fix it because the
} support folks probably don't want to support the multiple gettys.  Maybe
} someday someone will make a shared library patch.

Perhaps making some links to /dev/window so that each getty can
refer to it by a different name would solve the problem.

Richard