Re: packages which add user accounts: is fedora-usermgmt the way?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Christian.Iseli@xxxxxxxx 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.




Enrico

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux