+++ 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
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