Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Apr 2002 19:35:09 +0400
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        current@FreeBSD.ORG, des@FreeBSD.ORG
Subject:   Re: PAM & OpenSSH: two incorrect "last login"
Message-ID:  <20020420153509.GD6166@nagual.pp.ru>
In-Reply-To: <20020420011633.GA66468@nagual.pp.ru>
References:  <20020420011633.GA66468@nagual.pp.ru>

index | next in thread | previous in thread | raw e-mail

This bug still present too. Please handle it somehow, it is clearly comes 
from PAM.

On Sat, Apr 20, 2002 at 05:16:35 +0400, Andrey A. Chernov wrote:
> I got this TWO last login lines with recent -current SSH+PAM:
> 
> --------------------------
> Last login: Sat Apr 20 04:50:45
> from hermes.dialup.ru
> 
> Last login: Sat Apr 20 04:56:06 2002 from hermes.dialup.ru
> Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
> ...
> --------------------------
> 
> The second one is semi-correct, excepting year not needed here. It is
> original SSH bug easy to fix, just print first 19 characters and not whole
> ctime() line in session.c
> 
> But what about first one? Apparently it comes from pam_lastlog.so, but why 
> there is \n in the middle? Looking at pam_lastlog.c sources I not find \n 
> there. It seems it is inserted afterwards somehow. Notice the second \n 
> after first lastlog line, it must not be there too. Please fix those 
> two \n's.
> 
> BTW, ONE lastlog line is enough. Please either remove pam_lastlog.so or 
> comment "#ifndef USE_PAM" SSH one.
> 
> -- 
> Andrey A. Chernov
> http://ache.pp.ru/
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020420153509.GD6166>