On Thu, Jan 30, 2025 at 17:05:05 +0000, Daniel P. Berrangé wrote:
> On Thu, Jan 30, 2025 at 04:56:07PM +0100, Jiri Denemark wrote:
> > On Thu, Jan 30, 2025 at 15:21:31 +0000, Daniel P. Berrangé wrote:
> > > In Fedora >= 42, support for user/group account creation based on
> > > sysusers files has been enabled in RPM. Manually running useradd/
> > > groupadd is thus obsolete.
> > 
> > Do you have any pointer to how this actually works? So far users/groups
> > defined in sysusers were created at the end of transaction, which was
> > pretty useless. Is the change in Fedora about creating the users/groups
> > after each package is installed or even before? In other words, will the
> > following still work or will installation complain that the user/groups
> > do not exist?
> > 
> >     %attr(0755, %{qemu_user}, %{qemu_group})
> >     %attr(4750, root, virtlogin)
> 
> That should do the right thing
> 
>   https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers
> 
> IIUC, RPM should see the sysusers files in the package and take care
> to create the user accounts before deploying the files.

Great, sysusers is finally becoming a useful thing :-)

Reviewed-by: Jiri Denemark <jdene...@redhat.com>

Reply via email to