Bug#371143: cups-pdf failing on Cups 1.2.x because permissions on backend wrong

2006-06-07 Thread Matthew Exley
Package: cups-pdf
Version: 2.2.0-1
Severity: important


As delivered, cups-pdf will not work on Cups > 1.2.0 because of the permissions 
of the back end.
Per documentation at:
http://www.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/

I note the following:

> *** Starting with version 1.2.0 CUPS implements the "RunAsOption" no longer.
> In order to ensure CUPS-PDF is running with the required root privileges you
> have to make 'root' the owner of the cups-pdf backend and set the file
> permissions of the backend to 0700 (root only).  

The delivered backend, /usr/lib/cups/backend/cups-pdf, is owned by root but has
permissions rwxr-xr-x, leading to messages of the form:
[Job 5] cups-pdf cannot be called without root privileges!
..in /var/log/cups/error_log


The fix is to add the command:
chmod 0700 /usr/lib/cups/backend/cups-pdf

...to the packages postinst if it's being installed alongside cupsys > 1.2.0


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'testing'), (200, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.2006010301
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) (ignored: LC_ALL set to 
en_GB)

Versions of packages cups-pdf depends on:
ii  cupsys   1.2.1-2 Common UNIX Printing System(tm) - 
ii  gs-esp   8.15.1.dfsg.1-2 The Ghostscript PostScript interpr
ii  libc62.3.6-13GNU C Library: Shared libraries

cups-pdf recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#371143: cups-pdf failing on Cups 1.2.x because permissions on backend wrong

2006-06-08 Thread Martin-Éric Racine
tags 371143 pending
thanks

ke, 2006-06-07 kello 13:34 +0100, Matthew Exley kirjoitti:
> Package: cups-pdf
> Version: 2.2.0-1
> Severity: important
> 
> 
> As delivered, cups-pdf will not work on Cups > 1.2.0 because of the 
> permissions of the back end.
> Per documentation at:
>   http://www.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/
>   
> I note the following:
> 
> > *** Starting with version 1.2.0 CUPS implements the "RunAsOption" no longer.
> > In order to ensure CUPS-PDF is running with the required root privileges you
> > have to make 'root' the owner of the cups-pdf backend and set the file
> > permissions of the backend to 0700 (root only).  
> 
> The delivered backend, /usr/lib/cups/backend/cups-pdf, is owned by root but 
> has
> permissions rwxr-xr-x, leading to messages of the form:
>   [Job 5] cups-pdf cannot be called without root privileges!
> ..in /var/log/cups/error_log
> 
> 
> The fix is to add the command:
>   chmod 0700 /usr/lib/cups/backend/cups-pdf
> 
> ...to the packages postinst if it's being installed alongside cupsys > 1.2.0

Thanks for bringing this to my attention!

I'll upload a new package with the correct permissions shortly.

-- 
Martin-Éric Racine
http://q-funk.iki.fi