Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionJan Pazdziora (Red Hat)
2014-09-23 10:30:54 UTC
Description of problem:
The uid/gid allocated for user/group pkiuser is 17:
# rpm -qf /usr/share/doc/setup-2.8.71/uidgid
setup-2.8.71-4.el7.noarch
# grep pkiuser /usr/share/doc/setup-2.8.71/uidgid
pkiuser 17 17 /usr/share/pki /sbin/nologin pki-ca,rhpki-ca
#
The user is not created by rpm scriptlets even if it probably should to comply with https://fedoraproject.org/wiki/Packaging:UsersAndGroups#Soft_static_allocation. There is a bug 1143067 about that issue.
However, the user is created (maybe as a workaround for it not being created by rpm) upon ipa-server-install run:
# grep pkiuser /etc/passwd /etc/group
# ipa-server-install
The log file for this installation can be found in /var/log/ipaserver-install.log
==============================================================================
This program will set up the IPA Server.
[...]
Be sure to back up the CA certificate stored in /root/cacert.p12
This file is required to create replicas. The password for this
file is the Directory Manager password
# grep pkiuser /etc/passwd /etc/group
/etc/passwd:pkiuser:x:994:993:CA System User:/var/lib:/sbin/nologin
/etc/group:pkiuser:x:993:
#
The uid, gid, and home directory do not match the allocated values from uidgid.
Looking at the log,
# grep pkiuser /var/log/ipaserver-install.log
2014-09-23T10:06:29Z DEBUG adding ca user pkiuser
2014-09-23T10:06:29Z DEBUG args=/usr/sbin/useradd -c CA System User -d /var/lib -s /sbin/nologin -M -r pkiuser
it seems to be created by /usr/lib/python2.7/site-packages/ipaserver/install/cainstance.py.
Version-Release number of selected component (if applicable):
ipa-server-3.3.3-28.el7.x86_64
How reproducible:
Deterministic.
Steps to Reproduce:
1. Before ipa-server-install is run, check for pkiuser in /etc/passwd.
2. Run ipa-server-install, configure IdM.
3. Check for pkiuser in /etc/passwd.
4. Compare the uid, gid, and home directory with values from uidgid file.
Actual results:
Mismatch.
Expected results:
Match.
Additional info:
Ade, Endi - what is your recommendation to fix this ticket in FreeIPA? Should we just add pkiuser with fixed UID in ipa-server-install or would you add it in %post in your packages?
Comment 4Jan Pazdziora (Red Hat)
2014-10-30 11:00:31 UTC
(In reply to Martin Kosek from comment #3)
> Ade, Endi - what is your recommendation to fix this ticket in FreeIPA?
> Should we just add pkiuser with fixed UID in ipa-server-install or would you
> add it in %post in your packages?
I'd like both to happen, independently.
Incidently, I don't feel this bug depends on bug 1143067.
Comment 5Endi Sukma Dewata
2014-11-01 03:51:15 UTC
I think Dogtag packages should create the pkiuser with the proper attributes (standard UID/GID, home dir, etc.) by default in %pre, but an admin should be able to optionally specify/create a different user when creating a Dogtag instance. If IPA wants to use a specific user for Dogtag instance the IPA installer can certainly specify/create the user, but if the user is the standard pkiuser anyway it shouldn't be necessary once bug 1143067 is fixed since it will guarantee the pkiuser will exist on the system.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2015-2362.html
Comment 13Red Hat Bugzilla
2023-09-14 02:48:03 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days