cups asks for root password if user is not member of lpadmin group

Bug #387970 reported by Alan Porter
134
This bug affects 27 people
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: system-config-printer-gnome

When I add a printer using "system-config-printer.py" (system - administration - printing - new), it asks me for a root password instead of a sudo password.

Work-around: in a shell window, set a root password using "sudo passwd root".

11:24:50|alan@chutney:~$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04
11:26:29|alan@chutney:~$ apt-cache policy system-config-printer-gnome
system-config-printer-gnome:
  Installed: 1.1.3+git20090218-0ubuntu19
  Candidate: 1.1.3+git20090218-0ubuntu19.1
  Version table:
     1.1.3+git20090218-0ubuntu19.1 0
        500 http://us.archive.ubuntu.com jaunty-updates/main Packages
 *** 1.1.3+git20090218-0ubuntu19 0
        500 http://us.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status
11:26:41|alan@chutney:~$

Tags: precise
Revision history for this message
Joseph Smidt (jsmidt) wrote :

Umm... I tried to reproduce this bug and I wasn't even asked for a password of any sorts. If that is confirmed, perhaps that should be a bug in of itself.

On Ubuntu 9.04, I went to add a new printer and was successful and was never asked to enter any type of password.

Revision history for this message
Alan Porter (alan.porter) wrote :

Woah... this is weird.

I have a Jaunty (9.04) machine. I tried upgrading it to Karmic (9.10), and I got THIS in the middle of my upgrade:

    Setting up cups-pdf (2.5.0-4) ...
     * Reloading Common Unix Printing System: cupsd [fail]
    Password for root on localhost?

Wow... an interactive password prompt during "apt-get dist-upgrade"!!

Sounds like a closely related issue.

Alan

Revision history for this message
Ed Hargin (ed-hargin) wrote :

I've found this easy to reproduce by attempting to delete a printer.

The current work-around suggested has many ramifications, and is not recommended. A better workaround in my case was to edit the username (which by default was filled in as root) to my own username, and then use my own password (as my user has sudo privileges).

Revision history for this message
Rune Philosof (olberd) wrote :

Ed's workaround does not work for me.

Changed in system-config-printer (Ubuntu):
status: New → Confirmed
Revision history for this message
Kevin Otte (nivex) wrote :

I just got a phone call from my Mom having the same problem. I was able to work around by invoking "gksudo system-config-printer" and adding the printer.

Revision history for this message
tekstr1der (tekstr1der) wrote :

I can confirm that Kevin Otte's workaround is working for me. No need to set an actual root password.

Also, I tested this on a different, clean beta install and did not experience the same behavior. This bug affects only my system upgraded from a previous release.

Revision history for this message
Kevin Otte (nivex) wrote :

On home desktop: Did not encounter Alan's problem upgrading from 9.04 to 9.10.

On laptop: Freshly installed Karmic does not exhibit this problem.

Revision history for this message
tekstr1der (tekstr1der) wrote :

@Kevin Otte: Did your home desktop exhibit the bug reported here following the upgrade? Does it prompt for a root password when adding or deleting a printer when you launch system-config-printer without gksu?

Revision history for this message
Alan Porter (alan.porter) wrote :

Fresh install of Karmic 9.10 (64 bit) -- no prompt for root password. Woot!

Thanks for the help.

Revision history for this message
tekstr1der (tekstr1der) wrote :

Yes, it is confirmed that this does not affect a clean install. However, it clearly is happening in upgrade scenarios.

@Alan: Maybe the bug title should be modified to reflect this?

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

Looks like that on update a maintainer script of the old package is executed. Pitti, do you know how to make a new CUPS package so that this does not happen?

Revision history for this message
Greg (g6) wrote :

I'm also seeing this on an upgraded system. Setting a root password is not a workaround, it is a bad idea. gksudo suggestion above works.

Revision history for this message
Sini (jozsef-sin) wrote :

I also had this problem.

My workaround was:
System > Administration > Users Groups
Add "Configure Printers" privlegs to desired user.

Revision history for this message
tekstr1der (tekstr1der) wrote :

@Sini - Thanks. That's the best workaround to date. In fact, on a clean karmic install that privilege is enabled by default. That would explain why only us upgraders are experiencing this behavior.

Revision history for this message
Alaric (jroose) wrote :

I'm running Ubuntu 10.04 beta and this appears to be affecting a clean install. When I attempt to add a printer it prompts me for the root password that does not exist. I can also confirm that running gksudo rectifies the problem. For this reason, I feel system-config-printer (mine is version 1.1.91) should utilize gksudo for privelege escalation as opposed to the seemingly custom made box prompting for a root password.

Revision history for this message
John P. Richardson (paul-reverendlinux) wrote :

I think this is more than just a printing issue. When trying to do Sini's suggested workaround, I am not able to make changes to ANY user accounts because it is asking for a root password to do so. This is on a clean install of 10.04. See screenshot for visual proof.

Revision history for this message
bootedguy (pukne) wrote :

When I try to add a printer to my 10.04 clean install on a Dell 1420N laptop, I run into this root password problem. The problem does not occur with a clean install on a desktop.

Revision history for this message
linkx (link-mustbuilddigital) wrote :

Clean install of 10.04 and I still see the root prompt. I have seen this bug since 7.10 and I am surprised it is still around.

Revision history for this message
Jeff (rustysawdust) wrote :

Clean install of 10.10 + latest updates & I get a root prompt upon plugging in my Canon ip4200. "gksudo system-config-printer" worked for me.

Revision history for this message
TanzGeist (vertragliches) wrote :

Thanks Jeff for the
"gksudo system-config-printer" worked for my ip5200 on 10.10 - 64

I just ran into the "enter password for root" after trying to make the printer available to windows under virtual box - what used to work some weeks ago. But that might be another problem.

Revision history for this message
ekin (ekin) wrote :

I also get a prompt for root password for Ubuntu 11.04 when I try to add a printer.

"gksudo system-config-printer" solution worked.

Revision history for this message
Paul Mitchell (paul-d-mitchell) wrote :

I've only ever seen this message when the user wasn't a member of "lpadmin". The UI user manager has a check box "configure printers" under the account advanced settings. I believe the message is coming because CUPS is asking for an HTTP password.

Revision history for this message
Umut Erol Kaçar (umutkacar) wrote :

I ran into this problem on 12.04 and setting root password solved the problem.

tags: added: precise
Revision history for this message
MichielBeijen (michiel-beijen) wrote :

as mentioned in #22; I had this issue when I messed up accounts and groups. It prompts (with an ugly prompt) for authentication if you're not in the lpadmin group. When I set 'sudo usermod -aG lpadmin myusername' it worked flawlessly afterwards.

The bug is that it does not detect more gracefully if you are not a member of the lpadmin group.

summary: - cups asks for root password
+ cups asks for root password if user is not member of lpadmin group
Revision history for this message
Kobzeci (zeki) wrote :

Still reproducable on 15.10 (Kubuntu)

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.