Ubuntu 22.04 and dconf update

Posted by k1132810@reddit | linuxadmin | View on Reddit | 3 comments

Hey folks, hope this is an easy one. I've got some settings configured in /etc/dconf/local.d/ and those same settings locked down in ./locks. Now for a while, I noticed that the locks were working on one device in our environment, but not another, even though both were using the exact same files. What appeared to be the issue was file permissions. The 'local' file that sits in the same directory as local.d had 640 permissions while on the device that was working it had 644 permissions. Makes sense, if the user logging in can't read the file that guides everything to the settings/locks, why would it work? Easy fix, yeah? sudo chmod 644 local. But then any time after that, if you run dconf update, it reverts the file permissions. If I change them and leave them, the locks perist between logs and reboots and all that, which is great. But I have no idea why updating the dconf database would mess with file permissions. Any thoughts?