From a6f9d4818a5415ddd0affcf3485a1054eb1dfb9f Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Sun, 22 Jan 2023 20:30:29 -0800 Subject: [PATCH] Add notes about required ownership (root) and mode/permissions --- install/logrotate.d/sbbs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/logrotate.d/sbbs b/install/logrotate.d/sbbs index e0b79ddf07..00364d605b 100644 --- a/install/logrotate.d/sbbs +++ b/install/logrotate.d/sbbs @@ -1,7 +1,9 @@ # Synchronet syslog file rotation configuration # Assumes rsyslogd is configured to log sbbs syslog output to /var/log/sbbs.log # Assumes user/group sbbs:sbbs has been created and is used to run sbbs -# Copy this file to /etc/logrotate.d/ and edit to suit +# Symlink or copy this file to /etc/logrotate.d/ and edit to suit +# File must be owned by root (uid 0) and not be writeable by group/all: +# -rw-r--r-- 1 root root ... sbbs /var/log/sbbs.log { weekly maxsize 1G -- GitLab