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-utils | Assignee: | Steve Dickson <steved> | |
| Status: | CLOSED WONTFIX | QA Contact: | yanfu,wang <yanwang> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | low | |||
| Version: | 4.8 | CC: | 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: | ||||
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. How do you set anonuid/anongid? This 4294967294 depends on the uid/gid bytes assigned? |
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