Dear Maintainer,
The postinst script contains:
chown root:lpadmin /var/log/cups/*
This changes the group ownership of every non-hidden entry in
/var/log/cups, including files owned and managed by cups-daemon, such
as access_log, error_log and page_log.
These files may normally be owned by root:lp. Changing them to
root:lpadmin can override the permissions established by CUPS,
logrotate, dpkg-statoverride, or the local administrator. It can also
cause the group ownership to alternate between root:lp and
root:lpadmin after package upgrades, CUPS restarts, or log rotation.
The original purpose of this code appears to have been to fix the
ownership of cups-pdf's own log files. Older Debian packaging used:
chown root:lpadmin /var/log/cups/cups-pdf_log*
The command was later broadened to a recursive chown of /var/log/cups,
and was eventually changed to the current wildcard form in response to
a Lintian warning about recursive chown. There does not appear to be a
reason for cups-pdf to modify logs belonging to cups-daemon.
Suggested fix:
- chown root:lpadmin /var/log/cups/*
+ chown root:lpadmin /var/log/cups/cups-pdf_log*
The existing chmod command is already limited to cups-pdf_log*.
Regards,
Jiang Dingyuan
We believe that the bug you reported is fixed in the latest version of
cups-pdf, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1148593@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Martin-Éric Racine <martin-eric.racine@iki.fi> (supplier of updated cups-pdf package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 21 Sep 2026 13:41:02 +0300
Source: cups-pdf
Architecture: source
Version: 3.0.3-4
Distribution: unstable
Urgency: medium
Maintainer: Debian CUPS Maintainers <debian-printing@lists.debian.org>
Changed-By: Martin-Éric Racine <martin-eric.racine@iki.fi>
Closes: 1148593
Changes:
cups-pdf (3.0.3-4) unstable; urgency=medium
.
* [postinst]
= Only fix the ownership of our own CUPS logs (Closes: #1148593).
Checksums-Sha1:
af9161b4936a9e159f6718522f81d77162b7dd0f 2046 cups-pdf_3.0.3-4.dsc
8b4f80a4df3f87fd19bf9cc082f6a9aea24143b2 17180 cups-pdf_3.0.3-4.debian.tar.xz
82d3b6fd52872cb11084df8b84be97896e32d9da 6411 cups-pdf_3.0.3-4_source.buildinfo
Checksums-Sha256:
27c29859c73cbde490d1f315e3e5456059e86526f6e22f64618e8b4b9340623a 2046 cups-pdf_3.0.3-4.dsc
13a299b7bdbbca98cf7be58a04f369a8b41e1910832e2bb61d3c7edf5e679f68 17180 cups-pdf_3.0.3-4.debian.tar.xz
b023b97b6632990958bb0a1d3d5eb62dfe854cfd4b54d8faf43692f3c49d88f1 6411 cups-pdf_3.0.3-4_source.buildinfo
Files:
6ce10a6136624df3b7e47f1a81a0cac6 2046 graphics optional cups-pdf_3.0.3-4.dsc
309af93aff7e4041d9cbe701c7cfa29f 17180 graphics optional cups-pdf_3.0.3-4.debian.tar.xz
d96b9d26f3219a2c5a25e3545d2747eb 6411 graphics optional cups-pdf_3.0.3-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEyJACx3qL7GpObXOQrh+Cd8S017YFAmqxC0EACgkQrh+Cd8S0
17Yhsw//VcNJJxngg1soRT3vN+XgboKgzfvnlEuSp8Jc9H3cwp891gAh05+XRo0G
VC83X5LJ7yJsdWu4h80ESrmq7aIqLJZ2RRwCqbIJP/DywdCwnEoKQ/UHfv7+kIk0
gOwr6Zqa7Or2x1flcaZNKE8nfFpUzDkBn5vpF4PwyATPuLIow4jWl3MIwVdU5dSW
3+Ax1qxAFPeW93LEpabNn2H9aamATJChCe9nT++aWoV73P4SN7QdyXqehRe0C0ny
Xk08a8P4CuQ5Y+tT+sYFP/ZjOo8pcXrGa3RAN6qvB6pqQ4ufM14jgrhauf4G0DW+
JGEqbjNp4ETudQCvOAT/uQOSXn2MJ7hgU6nODnr+AKJs265TtaCsbP1JdUw1CJgV
VplqCubDygkxxENnw7w3Bq2vKolM+LBREUpyrHcvmGfrYktMqw73fAoR5TC2fQ81
+yl7Y71MUzfBmoMABfU6uwfykrqcH2/xL/++GbsTt3FnULzdGoLYl5vvvWt0qVP0
3PplHnsYL+cLCx4G6NWSlBTILCKmpKRn+nfHLyOquR4XApLkqJhiaG34hT8ZNffn
TmkBFFezT09v0Ur81LwyDZLjNbUqCDvXti9KILlI/Apg1DedAzRCLvjk+IdoRVZO
+c2NOznVE5dgAuw/C+V7hNxkDVCRQW1nggl9mhZw69PPXiVh8EA=
=hVAs
-----END PGP SIGNATURE-----