LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   logrotate and /var/log/btmp (https://www.linuxquestions.org/questions/linux-general-1/logrotate-and-var-log-btmp-561499/)

msteiner 06-13-2007 10:20 AM

logrotate and /var/log/btmp
 
What is the best way to handle the btmp file? The current btmp file on my server is quite large. Is it best to just rotate this log file monthly with logrotate?
Thanks,
Mary

gilead 06-14-2007 08:31 PM

That's what I do. Mine doesn't get a lot of entries, so I just added the following to /etc/logrotate.conf:
Code:

/var/log/btmp {
    monthly
    create 0600 root root
    rotate 1
}



All times are GMT -5. The time now is 05:51 PM.