docs: sudo -u apps needs absolute paths #305

Closed
mysticalsoap wants to merge 1 commit from docs/secrets-abs-paths into trunk
Owner

Problem

Secrets.md shows sudo -u apps ... cp infra/...-style commands. Run from a home directory, they fail with Permission denied on the source path: apps cannot enter $HOME, so the relative path dies before the file is checked. Looks like a permissions problem on the repo.

Fix

One paragraph next to the existing tee note: use absolute paths in anything run as apps, and why.

Verification

Reproduced: sudo -u apps sh -c "cp infra/wireguard/wg0.conf.example ..." from ~ fails, the same with /opt/docker/... paths succeeds; the source is 644 in a 755 dir.

## Problem Secrets.md shows `sudo -u apps ... cp infra/...`-style commands. Run from a home directory, they fail with `Permission denied` on the source path: `apps` cannot enter `$HOME`, so the relative path dies before the file is checked. Looks like a permissions problem on the repo. ## Fix One paragraph next to the existing `tee` note: use absolute paths in anything run as `apps`, and why. ## Verification Reproduced: `sudo -u apps sh -c "cp infra/wireguard/wg0.conf.example ..."` from `~` fails, the same with `/opt/docker/...` paths succeeds; the source is `644` in a `755` dir.
docs: sudo -u apps needs absolute paths
All checks were successful
validate / validate (pull_request) Successful in 23s
4565bcda5b
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
mysticalsoap closed this pull request 2026-09-21 00:29:27 -04:00
All checks were successful
validate / validate (pull_request) Successful in 23s
Required
Details

Pull request closed

Sign in to join this conversation.
No description provided.