Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jan 1996 08:13:20 -0500
From:      "David J. Fiander" <davidf@mks.com>
To:        joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
Cc:        team_fbf@pristine.com.tw (ywliu), aagero@aage.aage.priv.no, wosch@cs.tu-berlin.de, freebsd-bugs@freebsd.org
Subject:   Re: getlogin() returns bogus username 
Message-ID:  <21377.821884400@worf.mks.com>
In-Reply-To: Your message of "Wed, 17 Jan 1996 09:37:44 %2B0100." <199601170837.JAA02294@uriah.heep.sax.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Lemme think... the problem happened whenever somebody was logged in
> via telnet.  The getlogin() name was once per session, and the entire
> inetd(8) uses a single session.  telnetd doesn't change the session.
> 

That's odd.  I would expect login(1) to set the session up.  The
telnetd just manages the network connect; it's login that's
responsible for authentication, which is what getlogin() is part
of.

(wanders off to check his 2.1R CD.)

Yup, login.c, line 486 calls setlogin(), and syslog()s failures.

- David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?21377.821884400>