From owner-freebsd-bugs Fri Jan 24 9:40: 5 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67D7E37B401 for ; Fri, 24 Jan 2003 09:40:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14AAA43F3F for ; Fri, 24 Jan 2003 09:40:04 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0OHe3NS016787 for ; Fri, 24 Jan 2003 09:40:03 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0OHe3it016786; Fri, 24 Jan 2003 09:40:03 -0800 (PST) Date: Fri, 24 Jan 2003 09:40:03 -0800 (PST) Message-Id: <200301241740.h0OHe3it016786@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Gil Kloepfer Subject: Re: bin/45156: sshd won't display last login information Reply-To: Gil Kloepfer Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/45156; it has been noted by GNATS. From: Gil Kloepfer To: freebsd-gnats-submit@FreeBSD.org Cc: annihilator_sc@hotmail.com Subject: Re: bin/45156: sshd won't display last login information Date: Fri, 24 Jan 2003 11:31:00 -0600 I've verified this bug as well. The problem is in the OpenSSH source, and that if USE_PAM is defined, which it seems to be in FreeBSD, the #ifndef on line 762 of session.c removes the code that displays the last login time. I guess they assume that the PAM module will do that. If you change that line (in /usr/src/crypto/openssh/session.c) to #if !defined(USE_PAM) || defined(__FreeBSD__) then go to /usr/src/secure/usr.sbin/sshd and do a make sshd and install the new sshd into /usr/sbin and restart it will work again. However, if it hasn't been reported already, it needs to be ported back into the OpenSSH source code. I don't think my fix is likely the correct long-term one. -- Gil Kloepfer - Network Support Applied Research Laboratories : The University of Texas at Austin (512) 835-3771 / gil@arlut.utexas.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message