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:

>> | 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

--
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