Bug 117844 - Please add section to logrotate.conf for "/var/log/btmp"
Summary: Please add section to logrotate.conf for "/var/log/btmp"
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: logrotate
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Vrabec
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-09 08:33 UTC by Need Real Name
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-12-13 12:36:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2004-03-09 08:33:29 UTC
Description of problem:
If the sysadmin creates /var/log/btmp (bad logins file), it will never
get rotated by default.

IMHO, it would be good to add the following to the default
/etc/logrotate.conf:

/var/log/btmp {
        missingok
        monthly
        create 0400 root root (or 0440 root wheel)
        rotate 1
}

Version-Release number of selected component (if applicable):
logrotate-3.6.10-1

Thanks.

Comment 1 Petri T. Koistinen 2004-03-18 18:02:30 UTC
What program creates by default /var/log/btmp file?

Comment 2 Need Real Name 2004-03-18 18:08:01 UTC
None that I know of, which is why I said "If the sysadmin creates
/var/log/btmp."  If he does so, login(1) will keep writing to the same
file and it will never be rotated.

IMHO it would be a good idea for the OS installer to "touch" the file
(mode 0400), but maybe that is a separate issue for the 'setup' package?


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