Skip to content

debian package set incorrect cache permissions #305

@davidcoutadeur

Description

@davidcoutadeur

The directories /var/cache/service-desk/templates_c and /var/cache/service-desk/templates_c is owned by root:root, and not www-data:www-data.

The problem comes from dh_builddeb step:

When the Rules-Requires-Root field is not (effectively) binary-targets, dh_builddeb will pass --root-owner-group to [dpkg-deb(1)](https://manpages.debian.org/testing/dpkg/dpkg-deb.1.en.html).

This leads to all permissions in the package to be rewritten to root:root.

A fix could be to add in control file:

Rules-Requires-Root: binary-targets

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions