Bug 1376774 - Wrong CUPS configuration for systemd tmpfiles
Summary: Wrong CUPS configuration for systemd tmpfiles
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 25
Hardware: All
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-16 11:33 UTC by Iago Rubio
Modified: 2016-12-16 15:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-16 15:35:56 UTC
Type: Bug


Attachments (Terms of Use)

Description Iago Rubio 2016-09-16 11:33:41 UTC
Description of problem:
cups includes the file /usr/lib/tmpfiles.d/cups-lp.conf for systemd to create temporary devices in dev. That file configures the group 'lp' to be the files' group but the cupsd build is configuredd to use the user 'nobody'.

Version-Release number of selected component (if applicable):
cups-2.1.4-2.fc24

How reproducible:
There is an error at boot but this can be reproduced by starting the service on terminal.

Steps to Reproduce:
1. Open a terminal window
2. Run the command: systemctl start systemd-tmpfiles-setup-dev 


Actual results:
It shows an error.

Job for systemd-tmpfiles-setup-dev.service failed because the control process exited with error code. See "systemctl status systemd-tmpfiles-setup-dev.service" and "journalctl -xe" for details.


Expected results:
The service should start.

Additional info:
It can be fixed changing the /usr/lib/tmpfiles.d/cups-lp.conf to:

# Legacy parallel port character device nodes, to trigger the
# auto-loading of the kernel module on access.
#
# See tmpfiles.d(5) for details

c /dev/lp0 0660 root nobody - 6:0
c /dev/lp1 0660 root nobody - 6:1
c /dev/lp2 0660 root nobody - 6:2
c /dev/lp3 0660 root nobody - 6:3

Comment 1 Zdenek Dohnal 2016-12-16 15:35:56 UTC
Hi Iago,

thanks for contacting us. I tried to reproduce your issue on Fedora 25 and systemd-tmpfiles-setup-dev started without error. And with new packaging guidelines, user "nobody" is forbidden (https://fedoraproject.org/wiki/Packaging:Guidelines#Users_and_Groups). Probably it is problem with systemd-tmpfiles-setup-dev service. I can only suggest you update of that service or upgrade of Fedora.
Closing this as NOTABUG.


Note You need to log in before you can comment on or make changes to this bug.