From: Peter Müller Date: Thu, 14 Sep 2023 17:15:01 +0000 (+0000) Subject: logrotate: Rotate wtmp files monthly, and keep them for a year X-Git-Tag: v2.27-core180~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8769ed95b800c5cde8b1c61bbfff935e6cef6c7;p=ipfire-2.x.git logrotate: Rotate wtmp files monthly, and keep them for a year This prevents "last" being rendered unusable, and allows for better and faster auditing of previous logins. Fixes: #13322 Signed-off-by: Peter Müller Signed-off-by: Michael Tremer --- diff --git a/config/etc/logrotate.conf b/config/etc/logrotate.conf index 0b6b485737..c5f9883c7f 100644 --- a/config/etc/logrotate.conf +++ b/config/etc/logrotate.conf @@ -15,9 +15,9 @@ include /etc/logrotate.d # wtmp /var/log/wtmp { - weekly + monthly create 0664 root utmp - rotate 1 + rotate 12 } /var/log/httpd/access_log /var/log/httpd/error_log /var/log/httpd/ssl_request_log /var/log/httpd/ssl_engine_log {