Fix #60: document how to set side-wide permissions on log files

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg 2022-12-08 23:43:51 +01:00
parent b234244680
commit 153e6c4b65
2 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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