Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2006 20:05:04 +0000
From:      Brian Candler <B.Candler@pobox.com>
To:        Chris Hedley <cbh-freebsd-current@groups.chrishedley.com>
Cc:        current@freebsd.org
Subject:   Re: login, telnetd not updating utmp etc on -CURRENT
Message-ID:  <20060126200504.GA42435@uk.tiscali.com>
In-Reply-To: <20060126154140.E54781@aga.cbhnet>
References:  <20060124113647.W84257@teapot.cbhnet> <20060124190908.GA34769@uk.tiscali.com> <20060126154140.E54781@aga.cbhnet>

next in thread | previous in thread | raw e-mail | index | archive | help
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!  <Scratched head> 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.



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