Re: login, telnetd not updating utmp etc on -CURRENT

From: Brian Candler <B.Candler_at_pobox.com>
Date: Thu, 26 Jan 2006 20:05:04 +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!  <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.
Received on Thu Jan 26 2006 - 19:05:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:51 UTC