cups: "/usr/bin/lp: Not allowed to print."

Since yesterday I am not allowed to print anymore, even as root. I am not allowed to change settings as root in the web interface dialog. It doesn’t ask for credentials

rpm -q cups
cups-1.5.4-5.2.1.i586

I suppose the issue has been pulled in by an automatic security update, as I didn’t change anything and printing worked fine
until yesterday evening.

Any suggestions what to try would be appreciated.

Strange. I haven’t’ experienced or read of that issue before. Are you sure it is the result of a recent update?
Examining the following ouptut might help with that

rpm -qa --last

BTW, what openSUSE version do you have installed?

The administrator groups are defined in cupsd.conf. What is reported via the following?

grep -i SystemGroup /etc/cups/cupsd.conf

This terminal command will determine what was install last:

rpm -q --all --last

The next command will show what printers are in the system, show us the output from this command:

lpstat -p -d | grep "printer"

I have a bash script called Zypper Command, which includes a printing function, to see if it might work:

Zypper Command - Zypper Package Management Menu System - Version 2.00 - Blogs - openSUSE Forums

Thank You,

Thanks for your replies so far.

Version is suse 12.3

demetrius:/etc/cups # uname -aLinux demetrius.nodomain.nowhere 3.7.10-1.16-desktop #1 SMP PREEMPT Fri May 31 20:21:23 UTC 2013 (97c14ba) i686 i686 i386 GNU/Linux
demetrius:/etc/cups # grep -i SystemGroup /etc/cups/cupsd.conf
SystemGroup sys root
demetrius:/etc/cups # rpm -q --all --last |grep cups
libgnomecups-devel-0.2.3-131.1.1.i586 Thu Jul 11 19:53:09 2013
libgnomecups-0.2.3-131.1.1.i586 Thu Jul 11 19:52:29 2013
liboyranos0-cups-0.9.1-2.1.1.i586 Thu Jul 11 11:09:00 2013
python-cupshelpers-1.3.12-4.2.1.noarch Mon Jul 8 23:57:54 2013
cups-devel-1.5.4-5.2.1.i586 Mon Jul 8 23:56:17 2013
cups-backends-1.0-273.1.1.i586 Mon Jul 8 23:56:17 2013
cups-pk-helper-0.2.4-3.1.1.i586 Mon Jul 8 23:56:16 2013
python-cups-1.9.61-5.1.1.i586 Mon Jul 8 23:56:03 2013
cups-1.5.4-5.2.1.i586 Mon Jul 8 23:54:13 2013
cups-client-1.5.4-5.2.1.i586 Mon Jul 8 23:51:14 2013
cups-libs-1.5.4-5.2.1.i586 Mon Jul 8 23:38:53 2013
demetrius:/etc/cups # lpstat -p -d | grep “printer”
printer hp401 is idle. enabled since Sat Jul 13 10:23:42 2013
demetrius:/etc/cups #

Tried your tool but it didn’t print anything. No error message either.

I see you have three cups entries updated on Jul 11, if this corresponds to when you saw the problem occur:

libgnomecups-devel-0.2.3-131.1.1.i586         Thu Jul 11 19:53:09 2013
libgnomecups-0.2.3-131.1.1.i586               Thu Jul 11 19:52:29 2013
liboyranos0-cups-0.9.1-2.1.1.i586             Thu Jul 11 11:09:00 2013

You can open up YaST / Software / Software Management and search on cups. For these three applications, find the version tab and put a bullet on the original version, not from the openSUSE update repo. You can then elect to downgrade these apps. Once done, go back it, search again, find these three again, right click on each one one at a time and select protected and then press OK.

These are the GNOME libs and I don’t have them loaded using KDE and so you would wonder how they affect everything. Your printer shows up fine by the way.

Thank You,

Sorry for not showing up yesterday. I could not log in to the forum. As it seems, I have solved the problem. I had an allowUser directive for an invalid user in the printers.conf. Don’t ask me why. It’s working like it should now. Thank you for your help.

Thanks for the update. Good that you tracked it down. Quite often, problems like these are due to mis-configured .conf files :slight_smile: