[cups] cupsd(8) and all jobs ended up as from user 'anonymous'

Matthias Apitz guru at unixarea.de
Mon May 13 03:39:23 PDT 2019


El día Monday, May 13, 2019 a las 11:54:57AM +0200, Johannes Meixner escribió:

> 
> Hello,
> 
> On May 12 21:16 Matthias Apitz wrote (excerpt):
> >I compiled run 2.3b5 on SuSE Linux SLES12 and encountered the
> >problem that the user id of the session running lpr(1) was not seen
> >correctly by the cupsd(8) and all jobs ended up as from user 'anonymous'.
> 
> Does the affected username contain non-ASCII characters
> or more exactly characters that are not allowed according
> to "man useradd" that reads on my openSUSE Leap 15.0 system:
> ...

No, it does not work with usernames like 'cups' or 'sisis' or 'sybase' .
The error message in the cupsd log is:

D [07/May/2019:12:59:58 +0200] Create-Job client-error-attributes-or-values-not-supported: Ung\303\274ltiger Auftragsnamenwert: \\\"job-name\\\": Bad name value \\\"(stdin)\\\" - bad control character (PWG 5100.14 section 8.1).\n

I could roll back the update to 2.3b8 and trace the complete dialog
between lpr(1) and cupsd(8) about this. The username is read correctly
as, for example here 'sybase':

25682 recvfrom(10, "\0\6", 2, 0, NULL, NULL) = 2
25682 poll([{fd=10, events=POLLIN}], 1, 10000) = 1 ([{fd=10, revents=POLLIN}])
25682 poll([{fd=10, events=POLLIN}], 1, 10000) = 1 ([{fd=10, revents=POLLIN}])
25682 recvfrom(10, "sybase", 6, 0, NULL, NULL) = 6
25682 epoll_pwait(3, [{EPOLLIN, {u32=3299050096, u64=94316485902960}}], 4096, 1000, NULL, 8) = 1
25682 recvfrom(10, "I", 1, MSG_PEEK, NULL, NULL) = 1
25682 write(5, "D [07/May/2019:12:59:58 +0200] [Client 41] Read: status=100, state=6\n", 69) = 69

	matthias
-- 
Matthias Apitz, ✉ guru at unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
May, 9: Спаси́бо освободители! Thank you very much, Russian liberators!


More information about the cups mailing list