Project

General

Profile

Actions

Bug #1802

closed

foreman-proxy user has explicit user id

Added by Corey Osman over 11 years ago. Updated almost 7 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Packaging
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

Actions #1

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

Actions #2

Updated by Anonymous almost 7 years ago

  • Status changed from New to Rejected
  • Description updated (diff)
Actions

Also available in: Atom PDF