Merge pull request 'docs(installer): shard account needs read access to its client files on Linux' (#416) from docs/shard-client-file-perms into main
Reviewed-on: #416
This commit is contained in:
@@ -58,6 +58,7 @@ Only the sidecar is exposed, and only to your website.
|
|||||||
| The sidecar on the **same host** as the shard | The shard connects to `127.0.0.1:7788`. Splitting them is not supported — the loopback socket *is* the trust boundary for inbound commands. |
|
| The sidecar on the **same host** as the shard | The shard connects to `127.0.0.1:7788`. Splitting them is not supported — the loopback socket *is* the trust boundary for inbound commands. |
|
||||||
| Admin access to your Runic Gateway site | The last step is pasting four values into Admin → Shard (uo-link). |
|
| Admin access to your Runic Gateway site | The last step is pasting four values into Admin → Shard (uo-link). |
|
||||||
| `libgdiplus` *(Linux hosts only)* | Only needed for **artwork**. ServUO runs under Mono on Linux, and Mono's `System.Drawing` — which the shard uses to decode sprites out of your UO client — is a thin layer over this library. Without it the site's creature portraits and item pictures stay empty; names and the spawn atlas are unaffected. `sudo apt-get install libgdiplus` (or `dnf install libgdiplus`); `doctor` checks for it. **Windows hosts need nothing.** See [`../link/SHARD_PREREQS.md`](../link/SHARD_PREREQS.md). |
|
| `libgdiplus` *(Linux hosts only)* | Only needed for **artwork**. ServUO runs under Mono on Linux, and Mono's `System.Drawing` — which the shard uses to decode sprites out of your UO client — is a thin layer over this library. Without it the site's creature portraits and item pictures stay empty; names and the spawn atlas are unaffected. `sudo apt-get install libgdiplus` (or `dnf install libgdiplus`); `doctor` checks for it. **Windows hosts need nothing.** See [`../link/SHARD_PREREQS.md`](../link/SHARD_PREREQS.md). |
|
||||||
|
| **ServUO can read its UO client files** *(Linux hosts only)* | The shard reads clilocs and art straight out of your UO client and serves them over the bridge, so the account **ServUO runs as** must have **read and traverse** access to the client data directory (`Cliloc.enu`, `art*.mul`, `anim*.mul`, …). Usually automatic — the shard owns its own tree — but on Linux it bites when those files are owned by a different account, or ServUO runs under a locked-down service user or a systemd sandbox. Fix: run ServUO as the user that owns the client files, or grant that user access (`chmod`/`setfacl` read + traverse — traverse means `+x` on every parent directory). Symptom: cliloc or art imports come back "not found" or empty though the file is present. **Windows hosts need nothing.** See [`../link/SHARD_PREREQS.md`](../link/SHARD_PREREQS.md). |
|
||||||
|
|
||||||
**Back up first.** The overlay overwrites `Scripts/Scripts.csproj` (a stock file), and the patch
|
**Back up first.** The overlay overwrites `Scripts/Scripts.csproj` (a stock file), and the patch
|
||||||
tier edits stock sources. A copy of `Scripts/` and `Config/` before you start costs nothing.
|
tier edits stock sources. A copy of `Scripts/` and `Config/` before you start costs nothing.
|
||||||
|
|||||||
@@ -110,3 +110,26 @@ imaging: { ok: false, code: "NO_IMAGING",
|
|||||||
|
|
||||||
Clilocs and the ServUO tree files are genuinely unaffected: neither touches a pixel. The installer's
|
Clilocs and the ServUO tree files are genuinely unaffected: neither touches a pixel. The installer's
|
||||||
`doctor` checks for this alongside its other host checks.
|
`doctor` checks for this alongside its other host checks.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Host prerequisite: the shard account can read the client files (Linux)
|
||||||
|
|
||||||
|
Also a host requirement, also Linux-only, and the same shape as libgdiplus — but about
|
||||||
|
**permission**, not a missing library. Both the Asset Bridge and the cliloc table have **the shard**
|
||||||
|
read the operator's own UO client files (`Cliloc.enu`, `art*.mul`, `anim*.mul`, …) and serve them
|
||||||
|
over the bridge, so the account **ServUO runs as** must be able to read them.
|
||||||
|
|
||||||
|
On most hosts this is automatic: ServUO owns its own tree. It bites only when Windows → Linux habits
|
||||||
|
meet Linux's real file permissions — the client files owned by a different account, ServUO running
|
||||||
|
under a locked-down service user, a systemd `ProtectSystem` / `ReadOnlyPaths` sandbox, or a parent
|
||||||
|
directory the account cannot traverse. (On Windows a single account and permissive, case-insensitive
|
||||||
|
ACLs hide all of this.)
|
||||||
|
|
||||||
|
**Fix:** run ServUO as the user that owns the client files, or grant that user **read + traverse**
|
||||||
|
access to the client data directory — `chmod` / `setfacl` for read, and the traverse (`+x`) bit on
|
||||||
|
*every* parent directory down to the files. The failure is quiet: a cliloc or art import comes back
|
||||||
|
`not found` or empty even though the file is present and intact, because the shard's own open of it
|
||||||
|
is what was denied.
|
||||||
|
|
||||||
|
**Windows shard hosts need nothing** — one account, permissive and case-insensitive.
|
||||||
|
|||||||
Reference in New Issue
Block a user