From 5f2e4a45c32415367b77281111ea133a4dbefebe Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 5 Nov 2025 23:33:29 -0500 Subject: [PATCH] logrotate: preserve existing file owner/group/mode wmtp and btmp are reliably created by systemd at boot with the proper permissions which also means missingok can be dropped. --- etc/logrotate.conf | 9 +-------- etc/logrotate.d/nginx | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/etc/logrotate.conf b/etc/logrotate.conf index 8657fa1..382fe5a 100644 --- a/etc/logrotate.conf +++ b/etc/logrotate.conf @@ -27,11 +27,4 @@ tabooext + .pacorig .pacnew .pacsave # Arch packages drop log rotation information into this directory include /etc/logrotate.d -/var/log/wtmp { - create 0664 root utmp -} - -/var/log/btmp { - missingok - create 0600 root utmp -} +/var/log/wtmp /var/log/btmp {} diff --git a/etc/logrotate.d/nginx b/etc/logrotate.d/nginx index 43a252b..f0e7e37 100644 --- a/etc/logrotate.d/nginx +++ b/etc/logrotate.d/nginx @@ -1,6 +1,5 @@ /var/log/nginx/access.log /var/log/nginx/error.log { missingok - create 600 root root sharedscripts nodelaycompress maxsize 2G