Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#60271 - [cups] Compiled with bad default user set to NFS 'nobody'
Attached to Project:
Arch Linux
Opened by David Ford (FirefighterBlu3) - Monday, 01 October 2018, 18:10 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 12 April 2019, 09:35 GMT
Opened by David Ford (FirefighterBlu3) - Monday, 01 October 2018, 18:10 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 12 April 2019, 09:35 GMT
|
DetailsDescription:
PKGBUILD for cups uses "configure --with-cups-user=209 ..." (and for group), the configure script for cups sets to one of $ID (or lp, lpd, guest, daemon, nobody) on the building system. It appears that none of these are found on the build system, as the CUPS_USER and therefore CUPS_DEFAULT_USER are set to the NFS nobody uid of 65534. cups default getpwnam(user) is compiled in and cannot change at runtime. userid changes in the system require recompilation or adding a different username to the system. The end result is that unless CUPS_USER is specifically set in cups-files.conf, cupsd attempts to launch cgis with -u 65534, which is probably a bad uid on most modern systems which results in a segfault. Therefore, anytime systemd changes userids, Arch, or an administrator changes userids, when related to the compiled in values, cups needs to be recompiled and re-released. The uid 209 doesn't exist on my up to date system. FWIW, hardcoding "209" instead of a username is probably a bad idea too. Additional info: * package version(s) 2.2.8-3 * config and/or log files etc. reference: cups/scheduler/conf.c Steps to reproduce: |
This task depends upon
As you mentioned earlier "65534" maps to "nobody" so it's a valid uid.Also CUPS_USER is specified in cups-files.conf currently.
"The uid 209 doesn't exist on my up to date system. FWIW, hardcoding "209" instead of a username is probably a bad idea too."
The uid "209" is mapped to "cups" and created by /usr/lib/sysusers.d/cups.conf which is part of cups package.
Do you mean the problem is that cups will break if you change CUPS_USER in cups-files.conf? I'm not sure if this is supported case by Arch.
FS#56818andFS#57041. The user should be present when using an Arch system and a clean chroot.No idea what's happening on your system at runtime. Works for me.