login, telnetd not updating utmp etc on -CURRENT

Brian Candler B.Candler at pobox.com
Thu Jan 26 12:05:08 PST 2006


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.


More information about the freebsd-current mailing list