On Thu, Apr 16, 2015 at 8:14 AM, Thomas Bechtold <tbechtold@suse.com> wrote:
On 14.04.2015 12:31, Tim Serong wrote:
On 04/14/2015 03:04 PM, Tim Serong wrote:
Hi All,
A long time ago, there was a thread regarding UID/GID registration (see http://lists.opensuse.org/opensuse-buildservice/2009-05/msg00221.html). AFAICT the question "how can one register a static UID/GID in the 0-99 range" wasn't answered.
Does anyone know if there are still any spare UIDs in the range 0-99? Someone told me there weren't but I thought I'd better raise this here, just in case there are. And if there are any available, how do I reserve one?
Context: the ceph project wants to reserve a UID/GID - being a distributed storage cluster, it's best if the UID/GIDs remain static across the whole cluster, and the most straightforward way to do this is to hardcode a UID/GID in a useradd/groupadd invocation in the rpm %pre script.
I'm not sure if that is supported by openSUSE, but there is also systemd-sysusers (see man sysusers.d or http://0pointer.net/blog/projects/stateless.html ) to create system users/groups.
No, systemd-sysusers replaces ugly rpm scriptlets that create system users for something sane to make packaging and distribution assembly easier. It cannot assign fixed UID or GID, it is also not suitable for creating any other type of user, group than nologin system users. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org