From 7edf5ff4a974a1a256c16dc6d3fc3366c284d7e9 Mon Sep 17 00:00:00 2001 From: yann64 Date: Tue, 13 Oct 2026 19:24:46 +0200 Subject: [PATCH] Forum README: correct the Synology permission notes Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01YDRjtmAiNpo5mK5N3d7QwZ --- forum/README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/forum/README.md b/forum/README.md index a968ae73..a42e4177 100644 --- a/forum/README.md +++ b/forum/README.md @@ -108,14 +108,18 @@ the existing folder (it contains no `config.php`), then `php flarum migrate` and --no-same-owner --no-same-permissions --exclude=./storage --exclude=./public/assets' \ < forum/import/forum.tar.gz -`--no-overwrite-dir` matters on the Synology: without it tar resets the folders it touches to -plain Unix permissions, which drops the ACL entry that lets `http` write, and the forum answers -500. Repair, as the folder's owner (repeat for `public`, `public/assets`, `vendor`, `packages`): +Unpacking resets the folders it touches to plain Unix permissions on the Synology (even with +`--no-overwrite-dir`), which drops the ACL entry that lets `http` write: the forum then answers +500. Repair, as the folder's owner (the forum folder, `public`, `public/assets`, `vendor`, +`packages`): /usr/syno/bin/synoacltool -add "user:http:allow:rwxpdDaARWc--:fd--" and add the same entry for your own account and `group:administrators` right after, or the -folder is closed to you. +folder is closed to you. Do not use `-enforce-inherit` or `-copy` on a plain-permission file: +they leave it with an empty ACL (no access at all; `chmod 644`/`755` brings it back). The +simpler alternative, used for the WordPress folder: plain permissions with the group `http` +(`chgrp -R http . && chmod -R g+rwX .`). The bundle includes the spam filter `fof/anti-spam` (StopForumSpam check at registration, tools to remove a spammer); enable it with `php flarum extension:enable fof-anti-spam` (it needs