/run/user/1000/dconf/user - Permission denied - How to fix?

Like @gordon wrote: somewhere in your autostart-files there is probably some command being started like

sudo dconf
sudo gsettings

Which should be without 'sudo'

And to make the chaos complete:

Quote:

The issue can be caused by running a GUI after changing user using su command. Certain environmental variables are not changed causing the error. See

https://bugzilla.redhat.com/show_bug.cgi?id=753882

(b.t.w.: note the date of that bug)

That means that if you run sudo dconf
you expect it to write to /run/user/0/dconf/user
but instead it writes to /run/user/1000/dconf/user
because 'sudo' elevates permissions, but it does not impersonate root.

Solution:

Don't run gsettings or dconf as elevated user (i.e. 'su' or 'sudo') in an autostart script.

But, if you really need to do that, also adjust XDG_RUNTIME_DIR

1 Like