Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 511874

Summary: [RHEL 4] nfsnobody uid/gid values incorrectly depend on architecture
Product: Red Hat Enterprise Linux 4 Reporter: Sachin Prabhu <sprabhu>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED WONTFIX QA Contact: yanfu,wang <yanwang>
Severity: medium Docs Contact:
Priority: low    
Version: 4.8CC: rwheeler, s.shuchi30, tao
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 511876 (view as bug list) Environment:
Last Closed: 2010-09-23 19:40:04 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:

Description Sachin Prabhu 2009-07-15 13:42:21 UTC
From the nfs-utils .spec file:

# Define the correct unsigned uid value for 32 or 64 bit archs
%ifarch %{all_32bit_archs}
%define nfsnobody_uid   65534
%else
%define nfsnobody_uid   4294967294
%endif

This is incorrect. uid_t is of the same size on both 32 and 64 bit machines. The values for uid/gid for nfsnobody should be the same irrespective of the architecture.

Current values in /etc/passwd are as follows
RHEL 4.8 64 bit
nfsnobody:x:4294967294:4294967294:Anonymous NFS User:/var/lib/nfs:/sbin/nologin

RHEL 4.7 32 bit
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin

Comment 1 Sachin Prabhu 2009-07-15 13:44:57 UTC
There is another inconsistency on the default anonuid/anongid values used in RHEL 4 and RHEL 5.

On RHEL 4, this is set to (unsigned int) -2 = 4294967294
RHEL 5, it is set to 65534

That issue is being handled separately in bz 497551.

Comment 3 s.shuchi30 2010-08-03 16:41:59 UTC
How do you set anonuid/anongid?
This 4294967294 depends on the uid/gid bytes assigned?