From owner-freebsd-current@FreeBSD.ORG Thu Jan 26 15:45:28 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 8E5DE16A426 for ; Thu, 26 Jan 2006 15:45:28 +0000 (GMT) (envelope-from cbh-freebsd-current@groups.chrishedley.com) Received: from lon-mail-3.gradwell.net (lon-mail-3.gradwell.net [193.111.201.127]) by mx1.FreeBSD.org (Postfix) with ESMTP id 254D443D58 for ; Thu, 26 Jan 2006 15:45:26 +0000 (GMT) (envelope-from cbh-freebsd-current@groups.chrishedley.com) Received: from 53-233.adsl.zetnet.co.uk ([194.247.53.233] helo=mail.chrishedley.com ident=postmaster#pop3^chrishedley^com) by lon-mail-3.gradwell.net with esmtpa (Gradwell gwh-smtpd 1.207) id 43d8ee92.3146.109 for current@freebsd.org; Thu, 26 Jan 2006 15:45:22 +0000 (envelope-sender ) Received: from localhost (localhost [127.0.0.1]) by mail.chrishedley.com (Postfix) with ESMTP id BEBDBBC4D; Thu, 26 Jan 2006 15:45:08 +0000 (GMT) Received: from mail.chrishedley.com ([127.0.0.1]) by localhost (mail.chrishedley.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18130-02; Thu, 26 Jan 2006 15:45:07 +0000 (GMT) Received: from aga.cbhnet (aga.cbhnet [192.168.1.16]) by mail.chrishedley.com (Postfix) with ESMTP id 38EE4BBE3; Thu, 26 Jan 2006 15:45:07 +0000 (GMT) Date: Thu, 26 Jan 2006 15:45:24 +0000 (GMT) From: Chris Hedley X-X-Sender: cbh@aga.cbhnet To: Brian Candler In-Reply-To: <20060124190908.GA34769@uk.tiscali.com> Message-ID: <20060126154140.E54781@aga.cbhnet> References: <20060124113647.W84257@teapot.cbhnet> <20060124190908.GA34769@uk.tiscali.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: amavisd-new at chrishedley.com 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 15:45:28 -0000 On Tue, 24 Jan 2006, Brian Candler wrote: > On Tue, Jan 24, 2006 at 11:47:15AM +0000, Chris Hedley wrote: >> I've noticed on recent versions of -CURRENT that utmp, wtmp and lastlog >> aren't being updated by login and telnetd; however, sshd still seems to be >> working as expected. This is happening on both my systems so I'm guessing >> it's not something weird that I'm doing (although I'm open to the >> possibility that it might be!) I've only noticed this recently as prior >> to a few days back I'd only been using sshd on my FreeBSD systems, but the >> older one's telnetd is of 13-Oct-2005 vintage, if that's of any use. > > 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... Chris.