Bug 372 - Missing "lastlog" rotation in /etc/logrotate.conf
Missing "lastlog" rotation in /etc/logrotate.conf
Product: Red Hat Linux
Classification: Retired
Component: logrotate (Show other bugs)
i386 Linux
low Severity low
: ---
: ---
Assigned To: Cristian Gafton
: 522 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 1998-12-09 15:36 EST by scottbeverly
Modified: 2012-04-10 17:06 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1998-12-10 18:58:42 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description scottbeverly 1998-12-09 15:36:29 EST
Maybe this isn't a bug, but I'm posting it anyway because if
it was left out on purpose then the comment should be

In /etc/logrotate.conf I found the following:

# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
    rotate 1

######## yet although the comment mentions lastlog there was
not an entry for it in the config file.  Here is what I
believe should have followed the above entry (or something

/var/log/lastlog {
    rotate 1
Comment 1 Cristian Gafton 1998-12-10 18:58:59 EST
lastlog should not be rotated, as it will not grow in size (it stores
the timestamps of the last login for each UID, and the max number of
UIDs is 65535, so ,ax size it will be 64K users * 6 bytes each record.
Comment 2 scottbeverly 1998-12-10 19:18:59 EST
Yup, that makes total sense to me.  So it was incorrect to have it
rotated in previous versions, and the comment in the file should be
changed to remove mention of rotating lastlog, no?
Comment 3 Jeff Johnson 1998-12-31 15:51:59 EST
*** Bug 372 has been marked as a duplicate of this bug. ***

logrotate.conf doesn't handle lastlog, even tough it's
supposed to, and does not compress logs by default
[version 2.6-3]

------- Additional Comments From dkl@redhat.com  12/23/98 10:56 -------
This report reduces to a policy question, (why doesn't logrotate
rotate lastlog) and a product improvement suggestion, (why doesn't
logrotate compress back level logs).

------- Additional Comments From borgia@students.cs.unibo.it  12/26/98 18:02 -------
No, it is not a policy question! Please read the comments in your own

From /etc/logrotate.conf as shipped in 5.2:
# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
    rotate 1

# system-specific logs may be configured here

Doh: the script says it should handle lastlog, but doesn't...

------- Additional Comments From ayn2@cornell.edu  12/26/98 18:38 -------
This bug report is a duplicate of #372
Comment 4 borgia 1999-01-06 03:17:59 EST
Ok, sorry, lastlog should not be rotated but then the comment in
logrotate.conf is a bit misleading... "bug" closed, I'd say.

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