Skip to content

Install sysusers.d config for user/groups#1512

Open
bluca wants to merge 2 commits intoOpenPrinting:masterfrom
bluca:sysusers
Open

Install sysusers.d config for user/groups#1512
bluca wants to merge 2 commits intoOpenPrinting:masterfrom
bluca:sysusers

Conversation

@bluca
Copy link

@bluca bluca commented Mar 17, 2026

Ubuntu, debian and other distro create the cups user/groups
in their packages.

Add a sysusers.d config file and install it. This configuration
file will create the configured system users/groups on first boot/factory
reset/package installation, without requiring manual scripts or actions.
This is very important for image-based OSes, but it is useful in other
cases too, to allow using declarative configuration instead of scripts.

https://www.freedesktop.org/software/systemd/man/latest/sysusers.d.html

By default if the systemd.pc pkg-config file does not exist, this will
be a no-op, so that it does not affect other OSes.
If systemd.pc exists and contains the installation directory variable,
or if it is specified manually in ./configure, then a sysusers.d config
file is generated based on the configure user/groups and installed.

Add separate files for the cups user/group and for the system groups,
as they can be set independently.

bluca added 2 commits March 17, 2026 11:43
Ubuntu, debian and other distro create the cups user/groups
in their packages.

Add a sysusers.d config file and install it. This configuration
file will create the configured system users/groups on first boot/factory
reset/package installation, without requiring manual scripts or actions.
This is very important for image-based OSes, but it is useful in other
cases too, to allow using declarative configuration instead of scripts.

https://www.freedesktop.org/software/systemd/man/latest/sysusers.d.html

By default if the systemd.pc pkg-config file does not exist, this will
be a no-op, so that it does not affect other OSes.
If systemd.pc exists and contains the installation directory variable,
or if it is specified manually in ./configure, then a sysusers.d config
file is generated based on the configure user/groups and installed.

Add separate files for the cups user/group and for the system groups,
as they can be set independently.
aclocal && autoconf
@michaelrsweet michaelrsweet self-assigned this Mar 17, 2026
@michaelrsweet michaelrsweet added the enhancement New feature or request label Mar 17, 2026
@michaelrsweet michaelrsweet added this to the v2.5 milestone Mar 17, 2026
@michaelrsweet michaelrsweet added the investigating Investigating the issue label Mar 17, 2026
@michaelrsweet
Copy link
Member

At first blush this looks good. Will do a more detailed review over the next several days...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request investigating Investigating the issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants