[Fedora-packaging] packages which add user accounts: is fedora-usermgmt the way?
Enrico Scholz
enrico.scholz at informatik.tu-chemnitz.de
Wed Sep 7 14:21:13 UTC 2005
Christian.Iseli at licr.org writes:
>> | useradd -u $[ $(cat /etc/fedora/usermgmt/baseuid) + 23 ] ...
>
> Hmm. If all you're trying to achieve is to have a default fixed UID, but
> still allow for some local customization, why not something along the lines of:
>
> | %{name}_UID=${%{name}_UID:-23}
> | useradd -u $%{name}_UID
Interesting idea. But it suffers from the same complex-scriptlet problem
which was explained later in the cited posting.
It has the additional problem that it is difficultly to handle; you
will have to write wrappers for all rpm aware tools so that the *_UID
environment is set for them (e.g. think on system initialization
which adds 400-500 packages and 20-30 new users in one 'yum install'
transaction).
It requires high maintenance also because it will miss new accounts
else.
'fedora-usermgmt' has to be configured only once (or keep it as-is, when
the functionality is not needed) and has very simple %scriptlets.
Enrico
More information about the Fedora-packaging
mailing list