From: "Peter Müller" <peter.mueller@ipfire.org>
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 [thread overview]
Message-ID: <20230914171501.566632-1-peter.mueller@ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 747 bytes --]
This prevents "last" being rendered unusable, and allows
for better and faster auditing of previous logins.
Fixes: #13322
Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org>
---
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
# 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 {
--
2.39.2
reply other threads:[~2023-09-14 17:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230914171501.566632-1-peter.mueller@ipfire.org \
--to=peter.mueller@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox