Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB permissions are affected by umask #7

Closed
iainhallam opened this issue Jun 19, 2023 · 1 comment
Closed

DB permissions are affected by umask #7

iainhallam opened this issue Jun 19, 2023 · 1 comment

Comments

@iainhallam
Copy link

When managing a database, the dconf_update exec compiles the ini files into the binary form, but unless the umask is 022, the resulting database might not be readable by all users (see, for example, https://gitlab.gnome.org/GNOME/dconf/-/issues/76). On Ubuntu, root's umask seems to be 077, so this causes issues. Can an explicit line be added to the dconf_update exec?

  exec { 'dconf_update':
    path        => ['/usr/bin','/usr/sbin'],
    command     => 'dconf update',
    refreshonly => true,
    umask       => '022',
  }
@jps-help
Copy link
Owner

Good catch. I've tested this myself and can see the module would be affected.

This should be fixed upstream, but it's easy enough to push a workaround for now. I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants