[cups] User = lp; Pages= unknown, CUPS 1.7.5

Helge Blischke helgeblischke at web.de
Thu Nov 19 09:13:45 PST 2015


Brandan,

that is, short of the disable flag, the same structure as the other one (plus the explicit suppression of banner pages).
So I see no explanation for why the jobs get "lp“ as user and no pages count.

cups-lpd should write log messages to syslog. Look for messages containing  the string "lpd“. 

Helge

> Am 19.11.2015 um 17:04 schrieb Haines, Brandan <BAHaines at cooperstandard.com>:
> 
> Helge:
> 
> I was wondering about that as well.  I found that we have /etc/xinetd.d/printer that is apparently the right one launching the service:
> 
> hostname:/etc/xinetd.d # cat printer
> service printer
> {
>        socket_type = stream
>        protocol = tcp
>        wait = no
>        user = lp
>        group = lp
>        passenv =
>        server = /usr/lib/cups/daemon/cups-lpd
>        server_args = -o document-format=application/octet-stream -o banner=off
>        only_from = 10.18.0 10.90.2.0
> }
> 
> 
> -----Original Message-----
> From: cups-bounces at cups.org [mailto:cups-bounces at cups.org] On Behalf Of Helge Blischke
> Sent: Thursday, November 19, 2015 10:49
> To: The CUPS user discussion list. <cups at cups.org>
> Subject: Re: [cups] User = lp; Pages= unknown, CUPS 1.7.5
> 
> Brandan,
> 
> your service printer structure for xinetd looks OK at the first glance, but what strikes me is the line
>        disable = yes
> which means that this service is not started (except if this tag is overwritten by other means).
> Is it possible that in your /etc/xinetd.d another service printer is specified which launches a different lpd daemon?
> 
> Helge
> 
>> Am 18.11.2015 um 17:35 schrieb Haines, Brandan <BAHaines at cooperstandard.com>:
>> 
>> Helge:
>> 
>> 
>> 
>> Thank you for your reply, I am sorry in the delay getting back to you as I was out of the office.
>> 
>> 
>> 
>> Yes, SAP client is using LPD Protocol (port 515).  The CUPS Server is using xinetd.  Here is our entire /etc/xinetd.d/cups-lpd file:
>> 
>> 
>> 
>> serername:/etc/xinetd.d # cat cups-lpd
>> 
>> service printer
>> 
>> {
>> 
>>       disable = yes
>> 
>>       socket_type = stream
>> 
>>       protocol = tcp
>> 
>>       wait = no
>> 
>>       user = lp
>> 
>>       group = lp
>> 
>>       passenv =
>> 
>>       server = /usr/lib/cups/daemon/cups-lpd
>> 
>>       server_args = -o document-format=application/octet-stream
>> 
>> }
>> 
>> 
>> 
>> servername:/etc # cat services | grep 515
>> 
>> printer         515/tcp    # spooler
>> 
>> printer         515/udp    # spooler
>> 
>> 
>> 
>> All I can say for sure is that on the older version (1.4.6), with the same config, when a job gets created, the user name shows as the person (SAP User) who initiated the print job from the SAP side.  With the newer version (1.7.5) the user is always showing as "lp".
>> 
>> 
>> 
>> Does that give you enough information or do you require more details?
>> 
>> 
>> 
>> -Brandan
>> 
>> 
>> 
>> -----Original Message-----
>> From: cups-bounces at cups.org [mailto:cups-bounces at cups.org] On Behalf
>> Of Helge Blischke
>> Sent: Friday, November 06, 2015 12:48
>> To: The CUPS user discussion list. <cups at cups.org>
>> Subject: Re: [cups] User = lp; Pages= unknown, CUPS 1.7.5
>> 
>> 
>> 
>> Brandan,
>> 
>> 
>> 
>> please tell how your SAP printing is configured (using LPD protocol, I suspect), and, when using the cups-lld daemon, how this is configured (inetd or xinetd configuration for cups-lpd, respectively).
>> 
>> Without this information it is hardly possible to guess what is going on.
>> 
>> 
>> 
>> Helge
>> 
>> 
>> 
>>> Am 03.11.2015 um 17:42 schrieb Haines, Brandan <BAHaines at cooperstandard.com<mailto:BAHaines at cooperstandard.com>>:
>> 
>>> 
>> 
>>> Michael, et. al.:
>> 
>>> 
>> 
>>> Greetings.  I'm hoping someone could point me in the right direction
>> 
>>> on how to trace/troubleshoot some job data in CUPS 1.7.5.  On the old
>> 
>>> version 1.4.6, whenever a job from SAP was created the user showed up
>> 
>>> as the person who created the job and the pages were good.  In 1.7.5,
>> 
>>> I know there was some security changes/configuration file changes
>> 
>>> 
>> 
>>> I have:
>> 
>>> 
>> 
>>> <snips>
>> 
>>> <Policy Default>
>> 
>>> JobPrivateAccess all
>> 
>>> JobPrivateValues none
>> 
>>> </Policy>
>> 
>>> <Policy Authenticated>
>> 
>>> JobPrivateAccess all
>> 
>>> JobPrivateValues none
>> 
>>> </Policy>
>> 
>>> </spins>
>> 
>>> 
>> 
>>> But when the job from SAP is created I see:  User = lp; Size = 40k; Pages = Unknown.
>> 
>>> 
>> 
>>> I've been trying to trace/step through this but the end result is really that in CUPS 1.4.6 I see the right user and page count but in CUPS 1.7.5 I don't.
>> 
>>> 
>> 
>>> -Brandan
>> 
>>> 
>> 
>>> 
>> 
>> ________________________________
>> This e-mail message is confidential and is intended only for the person(s) named above. If you have received this message in error, please notify the sender immediately and delete/remove it from your computer system. Any reading, distribution, printing or disclosure of this message is strictly prohibited if you are not the intended recipient of this message. Neither this information block, the typed name of the sender, nor anything else in this message is intended to constitute an electronic signature unless a specific statement to the contrary is included in this message.
>> _______________________________________________
>> cups mailing list
>> cups at cups.org
>> https://www.cups.org/mailman/listinfo/cups
> 
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups
> 
> This e-mail message is confidential and is intended only for the person(s) named above.  If you have received this message in error, please notify the sender immediately and delete/remove it from your computer system.  Any reading, distribution, printing or disclosure of this message is strictly prohibited if you are not the intended recipient of this message.  Neither this information block, the typed name of the sender, nor anything else in this message is intended to constitute an electronic signature unless a specific statement to the contrary is included in this message.
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups




More information about the cups mailing list