Mailinglist Archive: opensuse-features (121 mails)

< Previous Next >
[openFATE 310922] central system user registry
  • From: fate_noreply@xxxxxxx
  • Date: Mon, 6 Dec 2010 05:02:08 +0100 (CET)
  • Message-id: <feature-310922-2@xxxxxxxxxxxxxx>
Feature changed by: Rajko Matovic (rajko_m)
Feature #310922, revision 2
Title: central system user registry

- openSUSE-11.4: Unconfirmed
+ openSUSE-11.4: New
Requester: Important

Requested by: Ludwig Nussel (lnussel)
Partner organization:

Once upon a time all systems users were defined in aaa_base via the
default /etc/passwd file. When the uid space below uid 100 got too
small a new dynamic range between 100 and 499 was introduced. So
nowadays packages dynamically create a user in %pre which gets a random
uid in this range. Disadvantage: uids are different on every system.
Usually this is not a problem but for programs that export files over
the network it is. TV recordings made by VDR for example. useradd has a
--preferred-uid option for such cases. It's possible to specify a uid
and useradd tries to use it. If it's already taken another one is
Thefore I'd propose to leverage that feature: - introduce a central uid
registry for system users, e.g a file in aaa_base - lower
SYSTEM_UID_MAX (/etc/login.defs) to e.g. 349 and assign "preferred
uids" in the rage 350-499. - change useradd calls in packages to a
macro that transparently decides whether a preferred uid needs to be

Use Case:
- two systems running vdr, one for recording, the other one for
playback on a TV want to share recordings via nfs.

openSUSE Feature:

< Previous Next >
List Navigation