summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-07-10 08:35:41 +0300
committerPaul Buetow <paul@buetow.org>2026-07-10 08:35:41 +0300
commit03779322f5d8f1130ec1352ee9f0d2de69881b3b (patch)
treee4e263fb1f87c57b55ce33736e312cd343051858 /frontends
parentb4a75783befa31d81e17aa3dc09af1e531d92856 (diff)
frontends: OpenBSD dserver rc.d — create /var/run/dserver parent explicitly
install -d applies -o/-m only to the final directory, so the previous single 'install -d -o _dserver /var/run/dserver/cache' left the parent /var/run/dserver (the _dserver home dir) implicitly created as root:wheel after a reboot. Create the parent explicitly with the right ownership, matching the NetBSD template (dserver-netbsd.tpl). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'frontends')
-rwxr-xr-xfrontends/etc/rc.d/dserver.tpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/etc/rc.d/dserver.tpl b/frontends/etc/rc.d/dserver.tpl
index ee250aa..305b0ce 100755
--- a/frontends/etc/rc.d/dserver.tpl
+++ b/frontends/etc/rc.d/dserver.tpl
@@ -14,7 +14,11 @@ rc_pre() {
# keeps it fresh afterwards). The SSH host key lives in persistent
# /var/db/dserver so it survives reboots (a regenerated host key would
# break clients' known_hosts).
+ # install -d applies -o only to the final directory, so create the
+ # parent /var/run/dserver (the _dserver home dir) explicitly with the
+ # right ownership instead of letting it appear implicitly as root:wheel.
install -d -o _dserver /var/log/dserver
+ install -d -o _dserver /var/run/dserver
install -d -o _dserver /var/run/dserver/cache
install -d -o _dserver -m 0700 /var/db/dserver
if [ -x /usr/local/bin/dserver-update-key-cache.sh ]; then