Bug 884 - lastb does not work as advertised
lastb does not work as advertised
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: util-linux (Show other bugs)
5.2
i386 Linux
low Severity low
: ---
: ---
Assigned To: Cristian Gafton
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-01-19 19:58 EST by rnapier
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-03-25 21:39:08 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description rnapier 1999-01-19 19:58:14 EST
login.c that is provided by util-linux does not use
/var/log/btmp. It also provides last and last.1 which are
consistent with this.

However, SysVinit also provides last, last.1 and lastb which
do expect to use /var/log/btmp. This is the version that is
actually found in /usr/bin/last.

This means that lastb is effectively not compatible with
login on Redhat as installed by default. The major issue is
that last.1 is effectively incorrect. Though it does
discribe the correct behavior of last, it describes
incorrect behavior for login.

I recommend that you remove last* from SysVinit. Ideally a
replacement for lastb would read /var/log/secure.
Comment 1 seva 1999-01-21 12:47:59 EST
I asked about this half a year or so ago on the mailing list,
and would still like to see a solution.

Preferrably when there is a log of failed connections and lastb exists
and works...
Comment 2 Preston Brown 1999-03-22 15:20:59 EST
Cristian, how are we going to resolve this for 6.0?
Comment 3 Jeff Johnson 1999-03-25 21:39:59 EST
Should be fixed in util-linux-2.9o-6.

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