network printing: /usr/lib/lp unauthorized

Hello,

i have connected a new machine with Leap 15.2 and a Lexmark network printer via TCP port (AppSocket/JetDirect).
When I make a test print I get the message “/usr/bin/lp unauthorized”.
On my previous machine I had Tumbleweed, here it worked. I have already copied the printers.conf, turned off the firewall and compared cupsd.conf.

What could be the reason?

BR
Michael

Please post the output of “ls -l /usr/bin/lp” and “stat /usr/bin/lp”.

  • The expected results should be the Leap 15.2 values related to this Leap 15.1 values:

 > ls -l /usr/bin/lp
-rwxr-xr-x 1 root root 18480 23. Apr 12:18 /usr/bin/lp
 > 
 > stat /usr/bin/lp
  File: /usr/bin/lp
  Size: 18480           Blocks: 40         IO Block: 4096   regular file
Device: 801h/2049d      Inode: 1976703     Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2020-04-23 12:18:07.000000000 +0200
Modify: 2020-04-23 12:18:07.000000000 +0200
Change: 2020-04-27 13:15:23.511219846 +0200
 Birth: -
 > 

@me_and_susi:

There are some rather old issues with CUPS related to the printer parameter “AuthInfoRequired” – which is no longer present in the list of parameters CUPS uses – and therefore, are no longer relevant …

Please check, with YaST, you printer setup – you may have an issue with a policy which has been added by SUSE to the CUPS package.

  • The documentation is at the end of “/etc/cups/cupsd.conf” in the section “<Policy allowallforanybody>” – you’ll need to use the user “root” to access that file.

There are some URL links pointing to openSUSE SDB entries included in the comments there.

First one looking good:

-rwxr-xr-x 1 root root 18472 16. Mai 19:39 /usr/bin/lp*

Second one:

  File: /usr/bin/lp
  Size: 18472          Blocks: 40         EA Block: 4096   regular file
Device: 2ch/44d  Inode: 86745       Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2020-08-03 15:28:56.347325093 +0200
Modify: 2020-05-16 19:39:38.000000000 +0200
Change   : 2020-07-06 14:46:47.858756811 +0200
 Birth    : -

I compared (kompare) the actual one with cupsd.conf from my ‘old’ Tumbleweed installation and they are exactly the same.

This is my printer.conf btw.

<DefaultPrinter LexmarkIT>
UUID urn:uuid:c33e341f-5f3f-3d29-6871-9c79608dcc28
AuthInfoRequired none
Info Lexmark XM3100 Series
MakeModel Lexmark XM3100 Series
DeviceURI socket://10.25.120.14:9100
State Idle
StateTime 1596462656
ConfigTime 1596462658
Type 12619988
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy kerberos
ErrorPolicy stop-printer
</DefaultPrinter>

Yes, and, if you take a look, you’ll notice “AuthInfoRequired none” – which is no longer supported by CUPS …

And, there’s “OpPolicy kerberos” – what happens if the CUPS Operation Policy is changed to “default”?<https://www.cups.org/doc/policies.html&gt;

You may have to use either “lpadmin” or YaST to recreate the printer configuration.

I’ll be d4mned! Now it works! Can’t tell what I did wrong if so.

Deleted printer.conf and set up a new connection.

printer.conf now:

<DefaultPrinter Lexmark_IT>
UUID urn:uuid:9d44cfe0-61a5-3a23-6bfb-4514afb94524
Info Lexmark XM3150 Foomatic/Postscript
MakeModel Lexmark XM3150 Foomatic/Postscript
DeviceURI socket://10.30.100.14:9100
State Idle
StateTime 1596688657
ConfigTime 1596688610
Type 8433684
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
Attribute marker-colors \#000000,none,none
Attribute marker-levels 42,100,100
Attribute marker-names Schwarzer Toner,Belicht. einh.,Wartungskit
Attribute marker-types toner,opc,other
Attribute marker-change-time 1596688657
</DefaultPrinter>
<Printer Xerox_01>
UUID urn:uuid:75632c04-0463-34eb-785b-1b1d935dcbb9
Info Xerox WorkCentre 7345 Foomatic/Postscript
MakeModel Xerox WorkCentre 7345 Foomatic/Postscript
DeviceURI socket://10.30.100.11:9100
State Idle
StateTime 1596690773
ConfigTime 1596690686
Reason toner-empty-warning
Reason media-empty-warning
Type 8433692
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
Attribute marker-colors \#000000,#00FFFF,#FF00FF,#FFFF00,#000000,#00FFFF,#FF00FF,#FFFF00,none,none,none,none
Attribute marker-levels 50,90,1,79,24,53,51,51,88,0,57,66
Attribute marker-names Black Toner, Reorder Number 006R01513,Cyan Toner, Reorder Number 006R01516,Magenta Toner, Reorder Number 006R01515,Yellow Toner, Reorder Number 006R01514,Drum Cartridge (R1), Reorder Number 013R00662,Drum Cartridge (R2), Reorder Number 013R00662,Drum Cartridge (R3), Reorder Number 013R00662,Drum Cartridge (R4), Reorder Number 013R00662,Fuser,Waste Toner Container, Reorder Number 008R13061,Transfer Belt Cleaner, Reorder Number 001R00613,Second Bias Transfer Roll, Reorder Number 008R13064
Attribute marker-types toner,toner,toner,toner,opc,opc,opc,opc,fuser,waste-toner,transfer-unit,transfer-unit
Attribute marker-change-time 1596690773
</Printer>

Thank you all for the support!