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.

Bug 855416

Summary: regression: chown does not work in NFS4
Product: Red Hat Enterprise Linux 6 Reporter: RHEL Program Management <pm-rhel>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED CURRENTRELEASE QA Contact: JianHong Yin <jiyin>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.3CC: eguan, jiyin, jkurik, jsvarova, jwest, pm-eus, rh-bugzilla, steved, yanwang
Target Milestone: rcKeywords: Regression, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nfs-utils-1.2.3-15.el6_2.2 Doc Type: Bug Fix
Doc Text:
Due to a regression, the NFSv4 idmapper utility did not initialize correctly, which lead to a creation of incorrect file permissions. With this update, idmapper initializes as expected, creating correct file permissions.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-15 12:29:52 UTC Type: ---
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: 849945, 1020653    
Bug Blocks: 823848    
Attachments:
Description Flags
The patch that fixes the problem none

Description RHEL Program Management 2012-09-07 16:40:04 UTC
This bug has been copied from bug #849945 and has been proposed
to be backported to 6.2 z-stream (EUS).

Comment 5 Steve Dickson 2012-10-10 18:11:26 UTC
Created attachment 625074 [details]
The patch that fixes the problem

Comment 10 JianHong Yin 2013-10-22 09:51:29 UTC
verify by :
https://beaker.engineering.redhat.com/jobs/524526
   6.2 test PASS

https://beaker.engineering.redhat.com/jobs/524558
   6.2 + errata, test FAIL;

:: [   FAIL   ] :: Test root hasn't privilege to chown its file since squash to nobody (Expected 1, got 0)
----------------------------------------------------------------
6.2 is OK, why  backported to 6.2 z-stream?

Comment 11 JianHong Yin 2013-10-31 07:51:13 UTC
Hi all
    this bug is not in RHEL6.2, no need a zstream errata for 6.2;
    I think we should close this bug, and delete the errata.

Comment 12 Steve Dickson 2013-11-20 13:29:41 UTC
(In reply to Yin.JianHong from comment #11)
> Hi all
>     this bug is not in RHEL6.2, no need a zstream errata for 6.2;
>     I think we should close this bug, and delete the errata.

Here is the patch that went in:

diff -up nfs-utils-1.2.3/utils/idmapd/idmapd.c.orig nfs-utils-1.2.3/utils/idmapd/idmapd.c 
--- nfs-utils-1.2.3/utils/idmapd/idmapd.c.orig  2012-10-10 11:23:46.229652000 -0400
+++ nfs-utils-1.2.3/utils/idmapd/idmapd.c       2012-10-10 13:36:31.164381000 -0400
@@ -836,7 +836,7 @@ nametoidres(struct idmap_msg *im)
 
        switch (im->im_type) {
        case IDMAP_TYPE_USER:
-               ret = nfs4_name_to_uid(im->im_name, &uid);
+               ret = nfs4_owner_to_uid(im->im_name, &uid);
                im->im_id = (u_int32_t) uid;
                if (ret) {
                        im->im_status = IDMAP_STATUS_LOOKUPFAIL;
@@ -844,7 +844,7 @@ nametoidres(struct idmap_msg *im)
                }
                return;
        case IDMAP_TYPE_GROUP:
-               ret = nfs4_name_to_gid(im->im_name, &gid);
+               ret = nfs4_group_owner_to_gid(im->im_name, &gid);
                im->im_id = (u_int32_t) gid;
                if (ret) {
                        im->im_status = IDMAP_STATUS_LOOKUPFAIL;

This allows clients to understand uid/gid strings that are returned by the server in both the "3606" format and "steved" format.

Comment 13 Jan Kurik 2014-01-15 12:29:52 UTC
(In reply to Yin.JianHong from comment #11)
> Hi all
>     this bug is not in RHEL6.2, no need a zstream errata for 6.2;
>     I think we should close this bug, and delete the errata.

Checked with Steve Dickson - I am closing the bug and removing the errata.