IN the /var/log/ folder there are two files WTMP and BTMP BTMP is getting huge after a year, about 800MB, WTMP is getting close to 1MB. In the /etc/logrotate.conf I see this -------------------- # no packages own wtmp -- we'll rotate them here /var/log/wtmp { monthly minsize 1M create 0664 root utmp rotate 1 } ------------------- I can see where WTMP will probably rotate at some point soon. However there is nothing for BTMP. I thought about doing the same thing for btmp however the permissions are set at 0600 currently on the file. Will logrotate be able to rotate it at 0600 and if it creates at 0600 will it still work. Should I change to 0644 or 0664 (which would allow others to read the file?) /var/log/btmp { monthly minsize 1M create 0664 root utmp rotate 1 } I saw some fedora bugs on this and many were worried about the permissions and had issues with the logrotate of this file due to it. No solution was yet shown though they said it was fixed upstream. My file is almost a gigabyte and I am thinking of just 'touching' it to clear it. Any imput, ideas, etc, would be cool. Manually rotate it? Ideas?
========WTMP and BTMP BTMP is getting huge after a year, about 800MB, WTMP is getting close to 1MB. ============= I am on the digest, so I hope this does not start a new thread (responding to my own thread). I went and added a file to /etc/logrotate.d and ran it to rotate the file /var/log/btmp { minsize 1M create 0600 root root rotate 1 } Then I added the same to the logrotate.conf and deleted the file I had added for manual rotation. To /etc/logrotate.conf /var/log/btmp { monthly minsize 1M create 0600 root root rotate 1 } The manual worked. I am gonna delete the 800mb file and call it a wash. Good thing I left enough on that partition to deal with it. Chmod 0600, root/root, add to etc/logrotate.d, monthly. Any other ideas to optimize this are welcome. This was as installed and quite odd that it was not included in the setup. Thanks