Logrotate requires 0644 or 0444 permissions

https://github.com/webmin/webmin/issues/2396
This commit is contained in:
Jamie Cameron
2026-01-13 15:24:54 -08:00
parent 2833450b48
commit 83abdc8858

View File

@@ -344,7 +344,7 @@ foreach $c (@$conf) {
} }
print TEMP map { "$_\n" } &directive_lines($_[0]); print TEMP map { "$_\n" } &directive_lines($_[0]);
close(TEMP); 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"); local $out = &backquote_logged("$config{'logrotate'} -f $temp 2>&1");
return ($?, $out); return ($?, $out);
} }