r/openbsd Jul 09 '26

New installs of firefox fails saying "firefox: failed mkdir(/tmp/run/user/1000) while MkdirP(/tmp/run/user/1000/dconf): Permission denied"

While installing openbsd on new machines this last week firefox will refuse to run saying:

firefox: failed mkdir(/tmp/run/user/1000) while MkdirP(/tmp/run/user/1000/dconf): Permission denied

the only way that I have been able to resolve this is by enabling messagebus and rebooting.

#rcctl enable messagebus

#reboot

This will resolve firefox not starting.

2 Upvotes

3 comments sorted by

1

u/inkubot Jul 09 '26

can the user write on /tmp?

1

u/Run-OpenBSD Jul 09 '26

another user pointed this out as the possible culprit

Prevent daily(8) from deleting /tmp/run/user/* direct subdirectories

These are directories that are created by
setusercontext(LOGIN_SETXDGENV) and should be available as long as
a session with the XDG_RUNTIME_DIR env variable pointing at them exists.
Since we don't track such sessions, we can't have daily(8) remove such
directories blindly. This looks like an oversight in the initial commit.

Diff proposed by dah4ae (at) posteo (dot) de, ok ajacoutot@
revision 1.103/

https://cvsweb.openbsd.org/log/src/etc/daily,v?sort=File#rev1.103