[Pkg-cups-devel] Bug#503214: Bug#503214: cups: neither root privileges nor lpadmin membership is enough to install printer

Marc Haber mh+debian-bugs at zugschlus.de
Mon Oct 27 08:53:16 UTC 2008


On Thu, Oct 23, 2008 at 07:37:35PM +0200, Martin Pitt wrote:
> Marc Haber [2008-10-23 18:37 +0200]:
> > Not today, "Unable to copy ppd file" is the error message, and my log
> > has:
> > 
> > E [23/Oct/2008:18:32:11 +0200] CUPS-Add-Modify-Printer: Unauthorized
> 
> This is unfortunately happening very often, and admittedly very
> confusing. I guess the browser does the first request, gets this back,
> authenticates, and sends the next response.
> 
> To find out what's wrong with the PPD file, I need the full log,
> preferably with debugging. Can you please do
> 
>   cupsctl --debug-logging
> 
> and attempt the operation again? Then please do
> 
>   cupsctl --no-debug-logging
> 
> and send /var/log/cups/error_log.

Unfortunately, the bug is different now. I do not even get an error
message any more, but only a white page.

The attached error_log (with unstable CUPS) shows first trying to
print a test page on the printer which looked like installed OK
despite of the error message during the install, but that page simply
vanished into thin air. I then deleted the printer and tried to
reinstall it, which resulted in the white page being shown at the
place where the error message used to be.

> > I have also noticed that a lot of files from the packages have
> > permission 600 now:
> > 
> > $ ls -al /usr/lib/cups/backend/ipp
> > -rwx------ 3 root root 25K 11. Okt 12:59 /usr/lib/cups/backend/ipp
> 
> This is nothing new, but an unfortunate design of cups.

To make things worse, there does not seem to be a package owning the
following files under /usr/lib/cups/backend: dnssd, http, ipp, lpd,
parallel, scsi, serial, snmp, socket and usb.

> > which is violating a policy SHOULD, iirc.
> 
> In experimental it is at least fixed to be 744, so that it's world
> readable.

I always had the impression of having the experimental packages
installed, but I hadn't. I have now:
$ dpkg --list '*cups*' | grep '^ii'
ii  cups               1.3.9-2
ii  cups-bsd           1.3.9-2
ii  cups-client        1.3.9-2
ii  cups-common        1.3.9-2
ii  cups-pdf           2.4.8-3
ii  cupsddk            1.2.3-5
ii  cupsddk-drivers    1.2.3-5
ii  libcups2           1.3.9-2
ii  libcupsimage2      1.3.9-2
ii  libgnomecups1.0-1  0.2.3-3

Unfortunately, this didn't help me in printing but instead changed the
behavior of the system. I'll file a new bug.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190





More information about the Pkg-cups-devel mailing list