Mailing List Archive

login reporting (utmp?) problem on Linux
I have recently compiled and installed openssh-2.1.1p1 on a linux box.
The login reporting does not seem to work properly.

When logging into the box via ssh (protocol 1) utmp shows the user logged
in and the tty properly, but the field for the login date/time and the
field for originating host contain all NULLs.

Is anyone else seeing this same behavior, or have I just done something
really stupid?

I will not be able to use openssh if it doesn't log to utmp properly. :-(

Thanks,
Garrick James
Re: login reporting (utmp?) problem on Linux [ In reply to ]
* Garrick James <garrick@james.net> [000616 14:43]:
|I have recently compiled and installed openssh-2.1.1p1 on a linux box.
|The login reporting does not seem to work properly.

I have recently compiled and installed it on 4 machines, 3 of which are
Slackware7, and one is Slackware-current.

|When logging into the box via ssh (protocol 1) utmp shows the user logged
|in and the tty properly, but the field for the login date/time and the
|field for originating host contain all NULLs.

For me, I have the same behavior -- 0xffffff. opensshd seems to have a utmp
problem, but I can't be sure

All of the ttyp*'s are ssh logins:
[emily@dumont:~]$ w
2:50pm up 2 days, 21:07, 7 users, load average: 2.00, 2.00, 2.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
emily tty1 - Tue 5pm 16:21m 1.21s 1.17s ssh damon
emily tty2 - Tue 5pm 2days 2days 42.25s dnetc
emily tty3 - Thu11am 19:54 0.03s 0.03s -bash
emily tty4 - 12:47am 30:31 0.06s 0.06s -bash
emily ttyp6 - 31Dec69 0.00s 0.02s 0.01s w
emily ttyp4 - 31Dec69 13.00s 0.20s 0.10s mutt
emily ttyp5 - 31Dec69 7:59 0.06s 0.04s ssh otn

Thanks,
Emily