Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 371915 - sys-auth/pambase: wtmp contains duplicate log entries
Summary: sys-auth/pambase: wtmp contains duplicate log entries
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor with 1 vote (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
: 473796 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-06-16 11:11 UTC by Milos Ivanovic
Modified: 2020-09-09 15:58 UTC (History)
3 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 Milos Ivanovic 2011-06-16 11:11:38 UTC
This bug is better explained in bug 244816, which was marked as closed over 2 years ago but only fixed half the problem.

Please see if you can solve the second half of the issue.

Thanks.

Reproducible: Always

Steps to Reproduce:
1. last
2. see duplicate entries
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-06-16 16:13:49 UTC

*** This bug has been marked as a duplicate of bug 244816 ***
Comment 2 Milos Ivanovic 2011-06-16 17:12:50 UTC
Excuse me, this bug is not a duplicate.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-06-16 17:57:54 UTC
Explain.
Comment 4 Milos Ivanovic 2011-06-16 18:37:02 UTC
bug 244816: net-misc/openssh-5.1_p1-r1 prints two last login messages when USE=pam
cosmetic issue, which was resolved, hence the bug being marked as resolved.

bug 371915: wtmp contains duplicate log entries
physical issue, which still exists, hence myself filing it, and:

Diego Elio Pettenò 2009-01-09 02:36:32 UTC
Okay, let's cure one step at a time, the actual double display is fixed by
openssh-5.1_p1-r3. I'll be taking care of the double entry in lastlog, with a new pambase release.

posted in bug 244816, stating the issue in the last sentence, which is what this bug will be focused on.

I hope that you now understand better.
Comment 5 Pacho Ramos gentoo-dev 2018-09-24 13:25:39 UTC
still valid with 20150213-r2?
Comment 6 bugmail 2018-10-19 14:16:06 UTC
Yes, there are still duplicated entries in /var/log/wtmp with sys-auth/pambase-20150213-r2.

"last" looks as shown in 244816#c3:
- Two entries for every single ssh login
- The entries only differ in the second column (one e.g. "pts/0", one "ssh")
Comment 7 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-09-09 11:53:42 UTC
*** Bug 473796 has been marked as a duplicate of this bug. ***
Comment 8 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-09-09 11:58:19 UTC
Both this and bug 473796 are not bugs, but configuration choices, by default we are using the `silent` option for pam_lastlog.so. What both bugs describe can be configured via passing differento options to the module in the /etc/pam.d/system-login just read the man 8 pam_latlog page.