[Fedora-packaging] scriptlets for user creation needed

Thorsten Leemhuis fedora at leemhuis.info
Sat Dec 9 19:15:19 UTC 2006

Hi All!

thias and I had a small discussion on how to create handle useradd in
specfile scriptlets. See
and for details and
for the spec and the current solution.

Is not really a serious issue, but we should IMHO solve it once and for
all. Currently this two commands

/usr/sbin/useradd -r -s /sbin/nologin -d / fbubble &>/dev/null || :
/sbin/chkconfig --add fb-server

are executed in frozen-bubble-server's %post each time -- e.g. not only
on install but also on each update. That should do no harm, but looks a
bit unclean IMHO.

We should find a better scheme and put a template up somewhere that
people can simply use -- otherwise we'll end with multiple slightly
different solutions in our packages that trigger different bugs.

I know there were (and probably still are) disagreements on how to
install users in rpm files, but we should find a solution about as the
current situation sucks. Could the PC at least work out an example on
how to create users without ensc's stuff for now and put that up on

The we can search for the one and only proper solution later.


More information about the Fedora-packaging mailing list