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
* Garrick James <garrick at 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 at 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
I have two Debian based machines. One is stock 2.1r5. The other is somewhere between 2.1 and 2.2. ;-) Both machines had the utmp problem. So far, I have seen this problem on or received reports for the problem on Debian (2.1 and 2.2), Slackware (version?), RedHat (version?), Suse (6.4), and Mandrake (7.0 and 7.1), though. The patch I posted fixed the problem in each case. Damien, is there anyway I can get my patch tested on other non-Linux systems and rolled into the official distribution? -Garrick On Tue, 20 Jun 2000, Phil Karn wrote:> FYI, I also encountered this problem, but only after I updated my > Linux machines from Debian 2.1 (slink) to the Debian "frozen" > (2.2-potato) release. All my utmp entries are now Wed Dec 31. > > Phil >
On Wed, 21 Jun 2000, Garrick James wrote:> Damien, is there anyway I can get my patch tested on other non-Linux > systems and rolled into the official distribution?This is already in my tree. Can you try the tarball at: http://www.mindrot.org/misc/junk/openssh-SNAP-2000062200.tar.gz Regards, Damien Miller -- | "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)