Bug 866682

Summary: Incorrect reports of failed login attempts
Product: [Fedora] Fedora Reporter: David Woodhouse <dwmw2>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: jonathan, kdudka, kzak, maxamillion, mluscon, ovasik, p, tmraz, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-01 16:12:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Woodhouse 2012-10-15 21:05:48 UTC
Not entirely sure if this is PAM's fault, but...

[dwmw2@shinybook ~]$ su
Password: 
Last failed login: Fri Oct 12 20:50:36 PDT 2012 from 217.108.226.49 on ssh:notty
There were 17 failed login attempts since the last successful login.
[root@shinybook dwmw2]# exit
[dwmw2@shinybook ~]$ su
Password: 
Last failed login: Fri Oct 12 20:50:36 PDT 2012 from 217.108.226.49 on ssh:notty
There were 17 failed login attempts since the last successful login.
[root@shinybook dwmw2]# 


There certainly haven't been 17 failed login attempts between my first successful login, and my second. It even admits that — the last unsuccessful attempt was 3 days ago.

Comment 1 Tomas Mraz 2012-10-15 21:40:45 UTC
su has to update the btmp file for the display to be correct.

It probably should not update it if root attempts su-ing to a regular user account though.

Comment 2 Ondrej Vasik 2012-10-16 06:46:11 UTC
Utility su is going to move to util-linux in F19 (was removed from coreutils by upstream and Karel kindly added su and runuser to their new home in util-linux).

Comment 3 Karel Zak 2012-10-16 09:30:12 UTC
(In reply to comment #1)
> su has to update the btmp file for the display to be correct.

Good point, added to upstream util-linux TODO file.

Comment 4 Karel Zak 2013-02-01 16:12:53 UTC
Implemented in upstream tree, ...will be in util-linux 2.23 (f19)