From owner-freebsd-current@FreeBSD.ORG Thu Jan 26 20:05:08 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C44E116A420 for ; Thu, 26 Jan 2006 20:05:08 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from thorn.pobox.com (thorn.pobox.com [208.210.124.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68CFB43D46 for ; Thu, 26 Jan 2006 20:05:08 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from thorn (localhost [127.0.0.1]) by thorn.pobox.com (Postfix) with ESMTP id 82D65A4; Thu, 26 Jan 2006 15:05:29 -0500 (EST) Received: from mappit.local.linnet.org (212-74-113-67.static.dsl.as9105.com [212.74.113.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by thorn.sasl.smtp.pobox.com (Postfix) with ESMTP id 378058E3A; Thu, 26 Jan 2006 15:05:28 -0500 (EST) Received: from brian by mappit.local.linnet.org with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1F2DMe-000B3S-Iw; Thu, 26 Jan 2006 20:05:04 +0000 Date: Thu, 26 Jan 2006 20:05:04 +0000 From: Brian Candler To: Chris Hedley Message-ID: <20060126200504.GA42435@uk.tiscali.com> References: <20060124113647.W84257@teapot.cbhnet> <20060124190908.GA34769@uk.tiscali.com> <20060126154140.E54781@aga.cbhnet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060126154140.E54781@aga.cbhnet> User-Agent: Mutt/1.4.2.1i Cc: current@freebsd.org Subject: Re: login, telnetd not updating utmp etc on -CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2006 20:05:08 -0000 On Thu, Jan 26, 2006 at 03:45:24PM +0000, Chris Hedley wrote: > >Your PAM config OK? On my (5.4) system here, I have in /etc/pam.d/login > > > >... > ># session > >session include system > >... > > > >and in /etc/pam.d/system there is > > > ># session > >#session optional pam_ssh.so > >session required pam_lastlog.so no_fail > > > >In /etc/pam.d/telnetd there is > > > ># session > >#session optional pam_ssh.so > >session required pam_lastlog.so no_fail > > > >So it looks like that's how those updates are done. > > Oddly enough sshd is the only one mentioned that _doesn't_ have the > pam_lastlog plugin listed! I'll have to do a bit more > rummaging around to see if there's anything that seems reasonably > obvious... I think sshd has the ability to write directly to utmp/wtmp, but it depends on how it was compiled. On my machine sshd 'session' is just pam_permit.so, so I guess sshd must be writing those records directly. Regards, Brian.