rpms/tinyerp/FC-3 tinyerp.spec,1.7,1.8
Enrico Scholz
enrico.scholz at informatik.tu-chemnitz.de
Wed Dec 14 16:00:26 UTC 2005
rc040203 at freenet.de (Ralf Corsepius) writes:
>> %pre server
>> /usr/sbin/fedora-groupadd 13 -r tinyerp &>/dev/null || :
>> -/usr/sbin/fedora-useradd 13 -r -s /sbin/nologin -d /var/spool/tinyerp -M \
>> +/usr/sbin/fedora-useradd 13 -r -s /bin/bash -d /var/spool/tinyerp -M \
>> -c 'TinyERP Server Owner' -g tinyerp tinyerp &>/dev/null || :
>
> 2. You this %pre rule will have no effect if the user already exists.
> => This won't work.
I would say that this is intentionally. Deleting and recreating an
existing user in %pre seems to be a bad idea.
> 3. Why fedora-useradd?
>
> * Use literal account name instead of numerical ones and a plain
> user-add probably will be sufficient.
> * IMO, fedora-usermgt is a design wart that should not be used anywhere.
??? I create all my service users in this way and I am not aware of a a
better way to create service-users with the same UID on every host.
Enrico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 480 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20051214/1ea89acc/attachment.sig>
More information about the fedora-extras-list
mailing list