[Fedora-packaging] packages which add user accounts: is fedora-usermgmt the way?

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Wed Sep 7 09:55:26 UTC 2005

Christian.Iseli at licr.org writes:

>> It is easy to create users with predictable uids and fedora-usermgmt
>> offers a simple method doing this.
> IIUC, fedora-usermgmt looks the ID up on some wiki page somewhere ?

No; you are telling the uid (ditto for gids) in a way like

| %pre
| fedora-useradd 23 -r ... foo

The '23' was "requested" by adding a corresponding entry into the wiki
(http://fedoraproject.org/wiki/PackageUserRegistry) and written statically
into the spec-file.

By default, this hint will be ignored. But when enabling it with

  /usr/sbin/update-alternatives --set fedora-usermgmt /etc/fedora/usermgmt/scripts.shadow-utils

user 'foo' will get a static uid of BASE+23 where BASE is configured in
/etc/fedora/usermgmt/baseuid. When you set BASE to the same value on all
machines, user 'foo' will have the same uid everywhere.

Making BASE configurable is necessary because there does not exist a
free range for static uids; only 0-99 is reserved for static uids but
too small for FE. All other uid ranges might fall under local policies
and are not available.


More information about the Fedora-packaging mailing list