On Sat, 2024-02-03 at 12:27 +0100, Dominique Leuenberger wrote:
Is there some quick HOWTO for creating a group? Where should it be done? For example, if I see here missing group(bitlbee), I guess it should be provided package bitlbee, right? Is it enough just to add `Provides: group(bitlbee)` to metadata?
There are two ways:
* package generates user/groups by manually calling useradd/groupadd in a pre script. Then the package needs to provide the user/group symbols
* using sysusers.d (preferred way) a drop in file is installed and the user/group be generated by sysuser_generator
https://en.opensuse.org/openSUSE:Packaging_guidelines#Users_and_Groups
While we're at it, would it make sense to create something like an UID/GID registry and assign fixed UID/GID numbers to some system users and groups? That would be very helpful for any kind of setup where files are shared between different hosts, e.g. via NFS. Regards Martin