Ubuntu

"PDF Printer" does no not show up in "existing printers" (Dapper)

Reported by zsquareplusc on 2006-04-29
32
Affects Status Importance Assigned to Milestone
cups-pdf (Ubuntu)
Medium
Martin-Éric Racine
Nominated for Dapper by Mike Fedyk

Bug Description

It is not possible to set up a PDF-Printer as it is not selectable in the printer list.

Dapper Beta, updated 29.4.2006, AMD64 arch

description: updated
wannes (wannes) wrote :

I can confirm this.
cupsys 1.1.99.rc3-0ubuntu2
cups-pdf 2.0.3-1
gnome-cups-manager 0.31-1.1ubuntu6

Miles (miles-prower) wrote :

Bug confirmed.

cupsys 1.1.99.rc3-Oubuntu4
cups-pdf 2.0.3-1
gnome-cups-manager 0.31-1.1ubuntu6

Nicolas Albert (nicoa380) wrote :

Bug confirmed too.

cupsys 1.1.99.rc3-Oubuntu4
cups-pdf 2.0.3-1
gnome-cups-manager 0.31-1.1ubuntu6

Nicolas Albert (nicoa380) wrote :

After update, it's still bug with :

cupsys 1.2.0-0ubuntu1
cups-pdf 2.0.3-1
gnome-cups-manager 0.31-1.1ubuntu6

André Klitzing (misery) wrote :

cups 1.2 don't support option "RunAsOption" anymore but cups-pdf needs root privileges.

sudo chmod +s /usr/lib/cups/backend/cups-pdf

Now it should be visible in web-interface and will work.

wannes (wannes) wrote :

I does.
If this is added to the README.Debian this bug can be closed imo.

André Klitzing (misery) wrote :

Maybe it can be added to "debian/postinst".
No one wants to read big manuals just to add a simple backend. The bad thing is the security problem.

Changed in cups-pdf:
status: Unconfirmed → Confirmed
André Klitzing (misery) wrote :

Sebastian Dröge .... what do you think about it?

Dennis Kaarsemaker (dennis) wrote :

No need to bump importance...

Changed in cups-pdf:
importance: High → Untriaged
Val Catalasan (val-catalasan) wrote :

Why does it need to run with root priviledges? Anyone knows?

Because it wants to put the resulting PDF files in the home directory!
It looks totaly wrong to me, but that's the way it works right now.

Changed in cups-pdf:
importance: Untriaged → Medium

May be the shortest way to manage this problem is to extract the "file saving" part from the whole process to a "save file helper", then make only this being setuid root and well secured by going setuid to the final user as soon as it starts. Just my 2¢...

Martin-Éric Racine (q-funk) wrote :

Fixed in Debian as of 2.4.1-2
Upload pending.
Should be available for synchronisation to Ubuntu in a few hours.

Martin-Éric Racine (q-funk) wrote :

Uploaded to Debian as of Tue, 19 Sep 2006 12:00:38 -0700 and ready for synchronisation to Ubuntu.

Changed in cups-pdf:
assignee: nobody → q-funk
status: Confirmed → Fix Committed
Martin-Éric Racine (q-funk) wrote :

Accepted:
 OK: cups-pdf_2.4.1-2.diff.gz
 OK: cups-pdf_2.4.1-2.dsc
     -> Component: universe Section: graphics

Origin: Debian/unstable
Format: 1.7
Date: Thu, 28 Sep 2006 10:48:29 +0100
Source: cups-pdf
Binary: cups-pdf
Architecture: source
Version: 2.4.1-2
Distribution: edgy
Urgency: low

Changed in cups-pdf:
status: Fix Committed → Fix Released
wannes (wannes) wrote :

It doesn't work here. Purged the package, reinstalled the 2.4.1-2 - version and it doesn't show up in the detected printers ...

wannes@duvel:~ $ dpkg -l cups-pdf
ii cups-pdf 2.4.1-2 PDF printer for CUPS
wannes@duvel:~ $ ll /usr/lib/cups/backend/cups-pdf
-rws--S--- 1 root root 25052 2006-09-28 14:26 /usr/lib/cups/backend/cups-pdf

Whoopie (whoopie79) wrote :

Hi,

same here, doesn't work.

File permissions must be to get it to work:
-rwsr-sr-x 1 root root 25052 2006-09-28 14:26 /usr/lib/cups/backend/cups-pdf

Best regards,
Whoopie

Martin-Éric Racine (q-funk) wrote :

Reopening.

Wrong permissions in 2.4.1-2. Fixed in 2.4.1-3. Needs a sync.

Changed in cups-pdf:
status: Fix Released → Fix Committed
Martin-Éric Racine (q-funk) wrote :

Does 2.4.2-1 finally fix this issue for everyone?

wannes (wannes) wrote :

I removed the printer. Updated to 2.4.2-1. It showed up under the detected printers, installs fine and printing a test page also works.

Hooray! :-)

Changed in cups-pdf:
status: Fix Committed → Fix Released
Mike Fedyk (mfedyk) wrote :

Changed status to confirmed to reflect fix request for dapper. This has been fixed in edgy, but not dapper.

Changed in cups-pdf:
status: Fix Released → Confirmed
Martin-Éric Racine (q-funk) wrote :

Right, this shuld be released as an update to Dapper as well.

Martin-Éric Racine (q-funk) wrote :

Superseded by Malone bug 87595, which requests release for Dapper, Edgy and Feisty, with a slightly newer version that further tightens the back-end permissions.

Changed in cups-pdf:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers