Bug 1190874

Summary: nfs-utils pre scriptlet fails to add rpcuser properly
Product: Red Hat Enterprise Linux 7 Reporter: Steve Dickson <steved>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: Yongcheng Yang <yoyang>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.2CC: alonbl, bfields, chunwang, eguan, extras-qa, fdeutsch, fedora, fs-qe, jiyin, jlayton, kevin, steved
Target Milestone: rcKeywords: Reopened
Target Release: ---Flags: jiyin: needinfo-
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: nfs-utils-1.3.0-0.11.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1165322 Environment:
Last Closed: 2015-11-19 04:29:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1165322    
Bug Blocks: 1190234    

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