Bug 117844

Summary: Please add section to logrotate.conf for "/var/log/btmp"
Product: [Fedora] Fedora Reporter: Need Real Name <vader>
Component: logrotateAssignee: Peter Vrabec <pvrabec>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1CC: thoron
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-13 12:36:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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?