Bug #1802
closedforeman-proxy user has explicit user id
Description
foreman-proxy:x:999:999:Foreman:/usr/share/foreman-proxy:/usr/sbin/nologin
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 over 11 years 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
Updated by Anonymous almost 7 years ago
- Status changed from New to Rejected
- Description updated (diff)