Bug 1240258
Summary: | The uid and gid of a file created when rootsquash is enabled on a ganesha volume, is not nfsnobody | ||||||
---|---|---|---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Apeksha <akhakhar> | ||||
Component: | nfs-ganesha | Assignee: | Soumya Koduri <skoduri> | ||||
Status: | CLOSED ERRATA | QA Contact: | Arthy Loganathan <aloganat> | ||||
Severity: | urgent | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rhgs-3.1 | CC: | aloganat, amukherj, asriram, bmohanra, jthottan, kkeithle, ndevos, nlevinki, rcyriac, rhinduja, rhs-bugs, sankarshan, skoduri | ||||
Target Milestone: | --- | ||||||
Target Release: | RHGS 3.2.0 | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | nfs-ganesha-2.4.1-2 | Doc Type: | Bug Fix | ||||
Doc Text: |
Previously, NFS-ganesha mapped all anonymous users to uid 4294967294. This value is different from the nfsnobody value of 65534. With this fix all the anonymous uid and gid are mapped to nfsnobody by default.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-03-23 06:21:30 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: | |||||||
Bug Blocks: | 1216951, 1351522 | ||||||
Attachments: |
|
Description
Apeksha
2015-07-06 11:27:40 UTC
From the bug1054124 >>>> The permissions that are seen when root squash is enabled is based on anonymous UID and GID values used by NFS-ganesha. The default values for both anonymous UID and anonymous GID is -2. When this is converted to a 32 bit unsigned integer, we get the large number, i.e., 4294967294 that is seen in the permissions. The expected value of 65534 is the 16 bit equivalent of -2. <<<< This is expected behaviour while using nfs-ganesha. If needed, anonymous values can be manually configured to be 16-bit equivalent value of (-2). We should just set the uid+gid for the nfsnobody by default in our ganesha.conf. A simple and effective fix. Doc text is edited. Please sign off to be included in Known Issues. Doc text looks good to me. Created attachment 1217958 [details]
sample_fix
Verified the fix in build, nfs-ganesha-gluster-2.4.1-3.el7rhgs.x86_64 nfs-ganesha-2.4.1-3.el7rhgs.x86_64 glusterfs-ganesha-3.8.4-9.el7rhgs.x86_64 The uid and gid of a file created when rootsquash is enabled on a ganesha volume, is 65534. Edited the doc text further for the errata. 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/RHEA-2017-0493.html |