cups-pk-helper makes system-config-printer asking for a password when adding a new printer

Bug #807261 reported by Till Kamppeter
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups-pk-helper (Ubuntu)
Invalid
High
Unassigned
Oneiric
Invalid
High
Unassigned
system-config-printer (Ubuntu)
Fix Released
High
Unassigned
Oneiric
Fix Released
High
Unassigned

Bug Description

Since a recent update in Oneiric the proble occured:

If I click the "New printer" icon in the main window of system-config-printer the new-printer wizard opens and immediately a dialog pops up:

----------
Privileges are required to get list of available devices.

An application is attempting to perform an action that requires privileges. Authentication as one of the users below is required to perform this action.

[ User selection drop-down ]

Password: _____________________
----------

This dialog is not needed (and never appeared before) as I am in the "lpadmin" group and so I can do all administrative actions with CUPS.

The problem is caused by the installed cups-pk-helper package, it disappears when removing the package. So there must be a bug in cups-pk-helper.

Changed in policykit (Ubuntu):
importance: Undecided → High
milestone: none → oneiric-alpha-3
Revision history for this message
Martin Pitt (pitti) wrote :

It seems you have cups-pk-helper installed. This hasn't been integrated into Ubuntu yet (we are about to), so until this is done, please remove the package again.

Thanks for your report!

affects: policykit (Ubuntu) → system-config-printer (Ubuntu)
Changed in system-config-printer (Ubuntu):
milestone: oneiric-alpha-3 → none
status: New → Invalid
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

pitti, that's it. thank you.

I removed cups-pk-helper and it works correctly again.

Moving to cups-pk-helper ...

summary: - system-config-printer asks for password without necessity
+ cups-pk-helper makes system-config-printer asking for a password when
+ adding a new printer
Changed in system-config-printer (Ubuntu):
status: Invalid → New
affects: system-config-printer (Ubuntu) → cups-pk-helper (Ubuntu)
description: updated
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Current status:

system-config-printer continues to work correctly if cups-pk-helper is not installed.

If cups-pk-helper is installed, the password dialog appears. Choosing a user with system admin privileges and entering his password makes system-config-printer working normally. "Cancel" on the dialog makes system-config-printer not being able to do administrative tasks with CUPS, even listing available printers (equivalent of "lpinfo -m") does not work. If one SSHes into the machine from a remote box and starts system-config-printer, the password dialog does not appear and system-config-printer has no admin access to CUPS, the user has no chance to authenticate.

What I expect is that if the caller of system-config-printer is in the "lpadmin" group (or root), no password dialog should appear and all admin access to CUPS should be possible. If system-config-printer is called by another user, the password dialog should appear and admin access should be granted if the user who logs in is either root, or in the "lpadmin" group, or a user who can do root tasks in Ubuntu via "sudo" (like the first user). This should work independent whether the user is logged in via SSH or locally.

Currently, cups-pk-helper is recommended by the gnome-shell package which has made it getting installed with one of recent updates.

Why does gnome-shell recommend cups-pk-helper? We especially need to take into account that we have hidden away the new printer setup tool of GNOME completely in Ubuntu. Should we perhaps drop the Recommends?

Generally, system-config-printer should work with cups-pk-helper. cups-pk-helper needs to be configured/fixed so that it supports the "lpadmin" group (and also users logged in via SSH).

If cups-pk-helper cannot be fixed for Oneiric, we need to let cups-pk-helper and system-config-printer conflict, which would suppress the fulfilling of the "Recommends: cups-pk-helper" in gnome-shell when system-config-printer is installed. If we do so, in which package the conflict should be defined? cups-pk-helper or system-config-printer?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

For Oneiric we will apply a simple patch to system-config-printer to drop the PolicyKit support. This way system-config-printer will continue to behave like in Natty, also with cups-pk-helper being installed.

This is only a temporary solution. After Oneiric we will do improvements on PolicyKit and or cups-pk-helper to implement an easy-to-use PolicyKit-based authentication in system-config-printer.

Changed in cups-pk-helper (Ubuntu Oneiric):
status: New → Invalid
Changed in system-config-printer (Ubuntu Oneiric):
status: New → Triaged
importance: Undecided → High
milestone: none → ubuntu-11.10-beta-2
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-printer - 1.3.6+20110831-0ubuntu4

---------------
system-config-printer (1.3.6+20110831-0ubuntu4) oneiric; urgency=low

  * debian/patches/27_disable-policy-kit-support.patch: Disable the support
    for PolicyKit, as it leads to a password prompt dialog when doing any
    administrative action, even if the calling user is in the "lpadmin"
    group (LP: #807261). Note that this is a temporary solution for
    Oneiric only.
 -- Till Kamppeter <email address hidden> Mon, 12 Sep 2011 15:41:24 +0200

Changed in system-config-printer (Ubuntu Oneiric):
status: Triaged → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

See bug 847896 for the work on a real fix to be done by doing changes on PolicyKit.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.