From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH] logrotate: Rotate wtmp files monthly, and keep them for a year Date: Thu, 14 Sep 2023 17:15:01 +0000 Message-ID: <20230914171501.566632-1-peter.mueller@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2438951781468393806==" List-Id: --===============2438951781468393806== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This prevents "last" being rendered unusable, and allows for better and faster auditing of previous logins. Fixes: #13322 Signed-off-by: Peter M=C3=BCller --- config/etc/logrotate.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/etc/logrotate.conf b/config/etc/logrotate.conf index 0b6b48573..c5f9883c7 100644 --- a/config/etc/logrotate.conf +++ b/config/etc/logrotate.conf @@ -15,9 +15,9 @@ include /etc/logrotate.d =20 # wtmp /var/log/wtmp { - weekly + monthly create 0664 root utmp - rotate 1 + rotate 12 } =20 /var/log/httpd/access_log /var/log/httpd/error_log /var/log/httpd/ssl_reques= t_log /var/log/httpd/ssl_engine_log { --=20 2.39.2 --===============2438951781468393806==--