foreman-proxy user has explicit user id
|Assigned to:||-||% Done:||
This could be a problem with somebody's environment with user id collison. We would need to create the id without explicitly assigning the id and group id
Updated by Benjamin Papillon 6 months ago
I mostly disagree, most users daemon created by packages have forced uid. The good way is to check for the specific uid presence and then reacting accordingly.
I looked at Fedora guideline for users/groups creation, they do not address the case of fixed ids. Nevertheless, their wording and tests are interesting for checking users/groups creation.
Here are a sample of the documentation :
getent group GROUPNAME >/dev/null || groupadd -r GROUPNAME
getent passwd USERNAME >/dev/null || \
useradd -r -g GROUPNAME -d HOMEDIR -s /sbin/nologin \
-c "Useful comment about the purpose of this account" USERNAME
We can check a uid by with the command :
getent passwd UID