Bug 721331 - /var/log/btmp logging not working correctly
Summary: /var/log/btmp logging not working correctly
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: gdm
Version: 15
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ray Strode [halfline]
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-14 10:21 UTC by Michael Schwendt
Modified: 2012-08-07 18:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 18:28:34 UTC
Type: ---


Attachments (Terms of Use)

Description Michael Schwendt 2011-07-14 10:21:08 UTC
Description of problem:
For every successful GNOME login, /usr/bin/lastb displays an entry although it should only display bad (= failed) login attempts.


# lastb|head -2
misc     tty7         :0               Thu Jul 14 12:08 - 12:08  (00:00)    
misc     tty1         :0               Thu Jul 14 08:04 - 08:04  (00:00)    

compared with:

# last|head -7
misc     pts/0        :0               Thu Jul 14 12:08   still logged in   
misc     tty7         :0               Thu Jul 14 12:08   still logged in   
misc     pts/0        :0               Thu Jul 14 12:04 - 12:08  (00:03)    
misc     pts/0        :0               Thu Jul 14 11:02 - 11:02  (00:00)    
misc     pts/0        :0               Thu Jul 14 08:54 - 08:54  (00:00)    
misc     tty1         :0               Thu Jul 14 08:04 - 12:08  (04:03)    
reboot   system boot  2.6.38.8-35.fc15 Thu Jul 14 08:03 - 12:14  (04:10)   

and:

# last -f /var/log/btmp|head -2
misc     tty7         :0               Thu Jul 14 12:08    gone - no logout 
misc     tty1         :0               Thu Jul 14 08:04    gone - no logout 



Version-Release number of selected component (if applicable):
# rpm -qf /usr/bin/lastb
sysvinit-tools-2.88-3.dsf.fc15.x86_64

Comment 1 Michael Schwendt 2011-07-14 10:25:36 UTC
Seems to be specific to X/GNOME logins. Successful logins at the virtual console are not displayed, but failed local logins are, e.g.
testuser    tty2                          Thu Jul 14 12:22 - 12:22  (00:00)

Comment 2 Petr Lautrbach 2011-07-14 10:59:35 UTC
I'm not sute I understand where is the problem.

"Lastb is the same as last,  except  that  by  default  it  shows  a  log  of  the  file /var/log/btmp, which contains all the bad login attempts."

according to #c0, lastb output is same as last -f /var/log/btmp so the problem is in tool writing to /var/log/btmp which is probably gdm in this case.

Comment 3 Michael Schwendt 2011-07-14 12:34:18 UTC
Thanks for the prompt answer! If you think that lastb parses /var/log/btmp correctly, then let's reassign this to "gdm":

$ strings gdm-simple-slave |grep btmp
/var/log/btmp
Writing btmp failed session attempt record to /var/log/btmp
$ strings gdm-product-slave |grep btmp
/var/log/btmp
Writing btmp failed session attempt record to /var/log/btmp

Comment 4 Fedora End Of Life 2012-08-07 18:28:35 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.