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.
What program creates by default /var/log/btmp file?
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?