Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250287 - pam_lastlog & sshd: duplicate "Last login" upon login
Summary: pam_lastlog & sshd: duplicate "Last login" upon login
Status: RESOLVED DUPLICATE of bug 244816
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PAM Gentoo Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-08 13:59 UTC by Jan Kundrát (RETIRED)
Modified: 2008-12-08 15:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kundrát (RETIRED) gentoo-dev 2008-12-08 13:59:31 UTC
When the pam_lastlog is listed in the "session" of /etc/pam.d/system-login which is used by SSH, I get two different messages on ssh login and duplicate entries in the output of the `last` command:

jkt@pc134c ~ $ ssh batsheba.farm.particle.cz
Last login: Mon Dec  8 14:53:02 CET 2008 from pc134c.fzu.cz on pts/1
Last login: Mon Dec  8 14:55:45 2008 from pc134c.fzu.cz
batsheba ~ # last
root     pts/1        pc134c.fzu.cz    Mon Dec  8 14:55   still logged in
root     ssh          pc134c.fzu.cz    Mon Dec  8 14:55   still logged in
root     pts/1        pc134c.fzu.cz    Mon Dec  8 14:53 - 14:55  (00:02)
root     ssh          pc134c.fzu.cz    Mon Dec  8 14:53 - 14:55  (00:02)

This wasn't the case back when /etc/pam.d/ssh was directly including system-auth (ie. before the system-remote-login was introduced).
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-08 15:46:47 UTC

*** This bug has been marked as a duplicate of bug 244816 ***