Bug #8443

Adding a new printer requires administration password

Added by matsa 2014-12-15 21:30:36 . Updated 2015-09-16 13:30:23 .

Status:
Resolved
Priority:
Elevated
Assignee:
Category:
Hardware support
Target version:
Start date:
2014-12-15
Due date:
% Done:

100%

Feature Branch:
feature/jessie
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

When trying to add a new printer with Application > System > Administration > Printers, I’m now asked for the root password. IIRC, this is not the normal behavior with Tails.


Subtasks


Related issues

Related to Tails - Bug #7636: Impossible to configure printers from GNOME control center Resolved 2014-08-11
Related to Tails - Bug #8505: Jessie: there is an unclear and useless Sundry category in Applications menu Resolved 2014-12-31 2015-10-15
Related to Tails - Bug #10965: Some printers cannot be added via GNOME Resolved 2016-01-18

History

#1 Updated by sajolida 2014-12-16 14:36:03

  • Status changed from New to Confirmed
  • Priority changed from Normal to Elevated

Weird enough, the appeared between Tails 1.1 and 1.1.1. Making as Elevated since that’s a regression.

All this with Applications → System Tools → Administration → Printing → Add.

#2 Updated by intrigeri 2014-12-17 17:26:24

> Weird enough, the appeared between Tails 1.1 and 1.1.1.

In Tails 1.1.1, we’ve installed cups-pk-helper to fix Bug #7636. Before, one could simply not add a new printer with Applications → System Tools → Preferences → System Settings → Printers.

Does “Applications -> System Tools -> Administration -> Printing” still work? (It was apparently working in 1.1.) If it does, then I propose we either try to get rid of “Applications → System Tools → Preferences → System Settings → Printers”, or document the existing workaround.

#3 Updated by sajolida 2014-12-18 18:08:55

Sorry for not being precise in my previous comment, but I only tried Applications → System Tools → Administration → Printing → Add.

In 1.2.2 is asks for a password “Privileges are required to get list of available devices.”

#4 Updated by intrigeri 2014-12-19 10:26:50

> Sorry for not being precise in my previous comment, but I only tried Applications → System Tools → Administration → Printing → Add.

> In 1.2.2 is asks for a password “Privileges are required to get list of available devices.”

Argh. Is it fixed after de-installing cups-pk-helper?

#5 Updated by BitingBird 2014-12-19 13:56:19

  • QA Check set to Info Needed

#6 Updated by sajolida 2014-12-24 12:47:53

Yes, if I remove cups-pk-helper, then I am not prompted for an administration password anymore.

#7 Updated by BitingBird 2014-12-24 15:34:10

  • QA Check changed from Info Needed to Dev Needed

#8 Updated by intrigeri 2014-12-24 15:55:02

  • Subject changed from Adding a new printer requires administration password to Adding a new printer with system-config-printer requires administration password

#9 Updated by intrigeri 2014-12-24 16:02:14

  • Subject changed from Adding a new printer with system-config-printer requires administration password to Adding a new printer requires administration password
  • QA Check deleted (Dev Needed)
  • Type of work changed from Code to Discuss

Actually, in Tails 1.2.2, a password is asked both with system-config-printer (administration -> printing) and from the default GNOME printer settings (system settings -> printers).

I think we should:

  • Remove system-config-printer: it’s been there since the first commit, mostly because back in the years, it was the only decent CUPS GUI available; nowadays, GNOME’s one is good enough; we explicitly document that one should use the latter anyway, and as shown by this ticket, even us are confused by (or reporting confusing information about) the fact that we ship 2 GUIs for the same task.
  • Tweak the policykit permissions so that the active user is allowed to configure CUPS from the GNOME printing settings.

Thoughts?

#10 Updated by intrigeri 2014-12-24 16:03:05

  • related to Bug #7636: Impossible to configure printers from GNOME control center added

#11 Updated by intrigeri 2014-12-24 16:03:53

  • Category set to Hardware support
  • Target version set to Tails_1.3

Seems too heavy changes for a point-release, and the workaround isn’t too hard, hence flagging for 1.3.

#12 Updated by alant 2014-12-31 17:56:31

  • related to Bug #8505: Jessie: there is an unclear and useless Sundry category in Applications menu added

#13 Updated by alant 2014-12-31 17:57:12

> I think we should:
>
> * Remove system-config-printer: it’s been there since the first commit, mostly because back in the years, it was the only decent CUPS GUI available; nowadays, GNOME’s one is good enough; we explicitly document that one should use the latter anyway, and as shown by this ticket, even us are confused by (or reporting confusing information about) the fact that we ship 2 GUIs for the same task.
> * Tweak the policykit permissions so that the active user is allowed to configure CUPS from the GNOME printing settings.
>
> Thoughts?

I agree.

#14 Updated by sajolida 2015-01-03 23:28:05

  • Assignee set to Dr_Whax

#15 Updated by sajolida 2015-01-03 23:51:15

  • Type of work changed from Discuss to Code

During the January meeting, we said that:

  • We acknowledged the proposal from comment 9.
  • DrWhax will try to do it for 1.3.

https://tails.boum.org/contribute/meetings/201501/

#16 Updated by intrigeri 2015-02-09 14:46:45

DrWhax, the freeze is in 2 days. If you don’t think you’ll be able to complete this in time, please postpone to the next release or unassign this ticket from you.

#17 Updated by Dr_Whax 2015-02-10 20:45:38

  • Target version changed from Tails_1.3 to Tails_1.3.2

#18 Updated by Dr_Whax 2015-02-26 10:27:53

  • Target version changed from Tails_1.3.2 to Tails_1.4

I read this would be too heavy for a previous point-release. Will go to 1.4.

#19 Updated by intrigeri 2015-04-03 09:17:11

intrigeri wrote:
> DrWhax, the freeze is in 2 days. If you don’t think you’ll be able to complete this in time, please postpone to the next release or unassign this ticket from you.

Do you still plan to work on this on the short-term, or should we try and find someone else to take care of this problem?

#20 Updated by intrigeri 2015-05-09 02:27:45

Postponing again. No news from DrWhax, so de-assigning. I think I’ve read on IRC that adamb wanted to give it a try. Worst case, this ticket will make it into the summary of release goals without any assignee, and perhaps it’ll find someone to take care of it :)

#21 Updated by intrigeri 2015-05-09 02:30:36

  • Target version changed from Tails_1.4 to Tails_1.5

(hrm, trying again — indeed Redmine is picky.)

#22 Updated by BitingBird 2015-05-09 02:34:26

  • Assignee deleted (Dr_Whax)

#23 Updated by BitingBird 2015-07-06 13:27:41

  • Target version changed from Tails_1.5 to Hole in the Roof

No assignee for this milestone -> hole in the roof

#24 Updated by intrigeri 2015-07-07 00:27:10

> No assignee for this milestone -> hole in the roof

(As per monthly meeting.)

#25 Updated by intrigeri 2015-09-16 11:30:17

GNOME control center’s printer config panel actually uses cups-pk-helper’s rules: Bug #8505#note-19. So we should probably just patch/override these rules to not require any auth from the active user.

#26 Updated by intrigeri 2015-09-16 12:39:33

  • Status changed from Confirmed to In Progress
  • Assignee set to intrigeri
  • % Done changed from 0 to 10
  • Feature Branch set to feature/jessie

Bug #8505 prompted me to work on this one while I had the problem space in mind and the setup needed to test. I’ll be doing it in feature/jessie as I don’t want to bother having to rebase the rule overrides on top of Jessie’s cups-pk-helper in a couple months.

#27 Updated by intrigeri 2015-09-16 13:28:18

  • Status changed from In Progress to Resolved
  • % Done changed from 10 to 100

Applied in changeset commit:e421171ec6c2c88393a125fb6c0cc344dbba4f2d.

#28 Updated by intrigeri 2015-09-16 13:30:23

  • Assignee deleted (intrigeri)
  • Target version changed from Hole in the Roof to Tails_2.0

One less hole in the roof, one!

#29 Updated by intrigeri 2016-05-31 14:41:19

  • related to Bug #10965: Some printers cannot be added via GNOME added