From 03779322f5d8f1130ec1352ee9f0d2de69881b3b Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 10 Jul 2026 08:35:41 +0300 Subject: =?UTF-8?q?frontends:=20OpenBSD=20dserver=20rc.d=20=E2=80=94=20cre?= =?UTF-8?q?ate=20/var/run/dserver=20parent=20explicitly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- frontends/etc/rc.d/dserver.tpl | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3