From 153e6c4b659478abe9e6d6a0b70316bfda5dc97a Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 8 Dec 2022 23:43:51 +0100 Subject: [PATCH] Fix #60: document how to set side-wide permissions on log files Signed-off-by: Joachim Wiberg --- man/syslog.conf.5 | 10 ++++++++++ man/syslogd.8 | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/man/syslog.conf.5 b/man/syslog.conf.5 index c23040d..73c11e1 100644 --- a/man/syslog.conf.5 +++ b/man/syslog.conf.5 @@ -107,6 +107,16 @@ a file can reach before it is rotated, and later compressed. This feature is mostly intended for embedded systems that do not want to have cron or a separate log rotate daemon. .Pp +.Sy Note: +the permissions of the rotated files are kept. Meaning the +administrator can create all log files, before starting +.Nm +the first time, with the permissions needed for the site. However, if +the log files do not exist, +.Nm +will create them with the user and group it runs as and 0644 +permissions. +.Pp Comments, lines starting with a hash mark ('#'), and empty lines are ignored. If an error occurs during parsing the whole line is ignored. .Pp diff --git a/man/syslogd.8 b/man/syslogd.8 index f2bdabe..c535242 100644 --- a/man/syslogd.8 +++ b/man/syslogd.8 @@ -330,6 +330,16 @@ The size argument takes optional modifiers; k, M, G. E.g., 100M is The optional number of files kept include both gzipped files and the first rotated (not zipped) file. The default for this, when omitted, is 5. +.Pp +.Sy Note: +the permissions of the rotated files are kept. Meaning the +administrator can create all log files, before starting +.Nm +the first time, with the permissions needed for the site. However, if +the log files do not exist, +.Nm +will create them with the user and group it runs as and 0644 +permissions. .It Fl s Operate in secure mode. Do not log messages from remote machines. If specified twice, no network socket will be opened at all, which also