anomalous wtmp logging bug

Damien Miller
2000-03-31T09:48:50Z

On Fri, 31 Mar 2000, Alex wrote:

>
> I've noticed rather strange wtmp logging behavior in sshd.  Can anyone
> confirm or solve the following:
>
> Once a user authenticates themself to sshd, sshd among other things
> records the login in the wtmp, which `last` reads.  However, sshd
> logs hostnames which are longer than 16 characters instead of IPs
> like normal programs would.  As a result, I have useless entries
> such as:

OpenSSH logs both hostname and IP address if you wtmp supports it.
Under RedHat Linux I can get the IP addresses using "last -i". If
you would prefer IP addresses being logged instead of hostname,
you may want to hack on login.c. grep for ut_host and ut_addr.

-d

--
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm at mindrot.org (home) -or- djm at ibs.com.au (work)