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.
Bug 908447 - Use proper uid/gid for hacluster account as reserved in docs
Summary: Use proper uid/gid for hacluster account as reserved in docs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pacemaker
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Andrew Beekhof
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-06 17:39 UTC by Radek Steiger
Modified: 2014-06-16 06:32 UTC (History)
1 user (show)

Fixed In Version: pacemaker-1.1.10-6.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 908450 (view as bug list)
Environment:
Last Closed: 2014-06-16 06:32:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Radek Steiger 2013-02-06 17:39:57 UTC
Description of problem:


Pacemaker package uses groupadd/useradd without specifying the gid/uid number, making the OS assigning a non-system account with gid/uid >500:

getent group haclient >/dev/null || groupadd -r haclient
getent passwd hacluster >/dev/null || useradd -r -g haclient -s /sbin/nologin -c "heartbeat user" hacluster


Within bug 872208 request a gid/uid pair has been already reserved in the setup package as seen in the /usr/share/doc/setup-2.8.63/uidgid file:

# grep pacemaker -i /usr/share/doc/setup-2.8.63/uidgid
hacluster	189	-	/		/sbin/nologin	pacemaker
haclient	-	189	-		-	pacemaker


Please, fix the pre-inst script to correctly assign the reserved gid/uid when installing pacemaker rpms.


# rpm -q pacemaker setup
pacemaker-1.1.8-4.el7.x86_64
setup-2.8.63-1.el7.noarch

Comment 2 Andrew Beekhof 2013-02-27 02:04:47 UTC
Spec file updated


-getent group %{gname} >/dev/null || groupadd -r %{gname}
-getent passwd %{uname} >/dev/null || useradd -r -g %{gname} -s /sbin/nologin -c "heartbeat user" %{uname}
+getent group %{gname} >/dev/null || groupadd -r %{gname} -g 189
+getent passwd %{uname} >/dev/null || useradd -r -g %{gname} -u 189 -s /sbin/nologin -c "cluster user" %{uname}


Will be included in the next build.


Note You need to log in before you can comment on or make changes to this bug.