From 83abdc885855579f7b8cb841d86b21817d2c5b38 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Tue, 13 Jan 2026 15:24:54 -0800 Subject: [PATCH] Logrotate requires 0644 or 0444 permissions https://github.com/webmin/webmin/issues/2396 --- logrotate/logrotate-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logrotate/logrotate-lib.pl b/logrotate/logrotate-lib.pl index 6d7ebc3f9..f93cdd525 100755 --- a/logrotate/logrotate-lib.pl +++ b/logrotate/logrotate-lib.pl @@ -344,7 +344,7 @@ foreach $c (@$conf) { } print TEMP map { "$_\n" } &directive_lines($_[0]); close(TEMP); -&set_ownership_permissions(undef, undef, 0700, $temp); +&set_ownership_permissions(undef, undef, 0644, $temp); local $out = &backquote_logged("$config{'logrotate'} -f $temp 2>&1"); return ($?, $out); }