Bug#303265: sysvinit: Last does not display IPv6 addresses correctly

Miquel van Smoorenburg Miquel van Smoorenburg <miquels@cistron.nl>, 303265@bugs.debian.org
Thu, 14 Apr 2005 11:03:24 +0200


On Thu, 2005-04-07 at 11:44 +0100, Jason Cormie wrote:
> Miquel van Smoorenburg wrote:
> > "last" handles IPv6 in utmp/wtmp correctly as far as I know, but
> > I also know that ssh did not in previous versions at least. Not sure
> > what current versions do.
> >
> > So I guess last just shows you what actually is logged in
> > /var/log/wtmp, and if it's junk, it's junk ...
> 
> I may have been jumping to conclusions.
> 
> I think the culprit is sessreg being called by gdm when someone logs in
> here is some output
> 
> last
> c511094  mc3273.uad.a mc3273.uad.ac.uk Thu Apr  7 09:18 - 09:19  (00:01)
> 
> last -i
> c511094  mc3273.uad.a 112.191.21.64    Thu Apr  7 09:18 - 09:19  (00:01)
> 	(the ip should be 193.60.161.86)
> 
> Have looked at wtmp and yes you are right the false ip is in there.

OK, closing this bug. Feel free to re-open it and reassign it to gdm or
sessreg.

Mike.