Bug #1802
closed
foreman-proxy user has explicit user id
Added by Corey Osman almost 12 years ago.
Updated about 7 years ago.
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
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
- Status changed from New to Rejected
- Description updated (diff)
Also available in: Atom
PDF