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 1190874 - nfs-utils pre scriptlet fails to add rpcuser properly
Summary: nfs-utils pre scriptlet fails to add rpcuser properly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nfs-utils
Version: 7.2
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Yongcheng Yang
URL:
Whiteboard:
Depends On: 1165322
Blocks: 1190234
TreeView+ depends on / blocked
 
Reported: 2015-02-09 20:18 UTC by Steve Dickson
Modified: 2016-11-23 01:00 UTC (History)
12 users (show)

Fixed In Version: nfs-utils-1.3.0-0.11.el7
Doc Type: Bug Fix
Doc Text:
Clone Of: 1165322
Environment:
Last Closed: 2015-11-19 04:29:11 UTC
Target Upstream Version:
Embargoed:
jiyin: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2196 0 normal SHIPPED_LIVE nfs-utils bug fix update 2015-11-19 08:05:04 UTC

Description Steve Dickson 2015-02-09 20:18:00 UTC
+++ This bug was initially created as a clone of Bug #1165322 +++

Description of problem:
Pre scriptlet for nfs-utils adds gid/uid for rpcuser and nfsnobody.
When adding nfsnobody either groupmod/usermod or groupadd/useradd are used depending on whether nfsnobody already exists in group/passwd.
When adding rpcuser useradd/groupadd is used, which will fail if rpcuser already exists with different uid/guid.


Version-Release number of selected component (if applicable):
nfs-utils-1.3.0-2.4.fc20.x86_64

How reproducible:
At every yum install for several versions back

Steps to Reproduce:
1. Change uid and/or gid of rpcuser in /etc/passwd and/or /etc/group
2. yum isntall some nfs-utils.rpm

Actual results:
Pre scriplet complains it can't set up rcpsuser and that it will use root instead, thus /var/lib/nfs/statd may end up with wrong uid/guid

Expected results:
Clean install, proper permisions on /var/lib/nfs/statd

Additional info:
Simply replicating what is done for nfsnobody should suffice, either by copy and paste/edit, or by creating a common check/add/mod function.

--- Additional comment from Fedora Update System on 2014-12-14 14:02:04 EST ---

nfs-utils-1.3.1-4.0.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/FEDORA-2014-15315/nfs-utils-1.3.1-4.0.fc21

--- Additional comment from Fedora Update System on 2014-12-16 23:40:18 EST ---

Package nfs-utils-1.3.1-4.0.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing nfs-utils-1.3.1-4.0.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-15315/nfs-utils-1.3.1-4.0.fc21
then log in and leave karma (feedback).

--- Additional comment from Fedora Update System on 2015-01-03 14:11:44 EST ---

Package nfs-utils-1.3.1-4.1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing nfs-utils-1.3.1-4.1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-15315/nfs-utils-1.3.1-4.1.fc21
then log in and leave karma (feedback).

--- Additional comment from Fedora Update System on 2015-01-14 02:28:24 EST ---

nfs-utils-1.3.1-4.1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

--- Additional comment from Kevin Kofler on 2015-01-24 18:15:17 EST ---

The error either still shows up or shows up again in nfs-utils-1.3.1-5.0.fc21.

--- Additional comment from Henrique Martins on 2015-01-24 18:31:17 EST ---

After I filed this ticket I fixed /etc/{passwd,group} manually, thus I didn't notice whether it was fixed or not.

Just downloaded the source for nfs-utils-1.3.1-6.0.fc21 (on updates testing) and it seems Steve copied the section that creates/fixes the user nfsnobody to create the user rpcuser on /etc/passwd, but didn't copy the sections that creates/fixes the group rpcuser...

--- Additional comment from Fabian Deutsch on 2015-02-09 06:35:11 EST ---

I am also seeing this. Any solution on the horizon for this?

--- Additional comment from Fedora Update System on 2015-02-09 14:23:15 EST ---

nfs-utils-1.3.1-6.1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/nfs-utils-1.3.1-6.1.fc21

Comment 1 Steve Dickson 2015-02-09 20:19:50 UTC
Looking for a QE ack..

Comment 6 errata-xmlrpc 2015-11-19 04:29:11 UTC
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-2196.html


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