Bug #1802
foreman-proxy user has explicit user id
| Status: | New | Start: | 08/01/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | Packaging | |||
| Target version: | - | |||
| Backlog: | No | Difficulity: | ||
| Votes: | 0 |
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
History
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
