Description of problem: enabled root squash for nfs-ganesha process. after that I tried to create files and directory inside a directory having permissison for all. The new files and directory are created, but "ls -l" displays that the user:group are "4294967294:4294967294", instead of "nfsnobody:nfsnobody" Other nfs solutions display "nfsnobody:nfsnobody" Version-Release number of selected component (if applicable): glusterfs-3.4.0.57rhs-1.el6rhs.x86_64 nfs-ganesha-2.0.0.1-5.el6rhs.x86_64 How reproducible: always Steps to Reproduce: 1. mount the volume over nfs on a client 2. mkdir dir 3. chmod 777 dir 4. enable root-squash for nfs-ganesha process 5. create file or directroy inside the directory "dir", while logged in as root. 6. ls -l <mount-point>/dir Actual results: step 6 result, [root@rhsauto002 ~]# ls -l /mnt/nfs-ganesha/root-dir/ total 0 -rw-r--r--. 1 4294967294 4294967294 0 Jan 16 04:21 at drwxr-xr-x. 2 4294967294 4294967294 36 Jan 16 04:21 dir Expected results: the user and group should be nfsnobody nfsnobody, uid and gid for nfsnobody is usually uid=65534(nfsnobody) gid=65534(nfsnobody) groups=65534(nfsnobody) Additional info:
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. Please move this bug to Denali.
Please add doc text for this known issue:
Please review the edited doc text and sign off.
Not a blocker for Denali.
As mentioned in the doc_text, all UIDs are mapped to unsigned 32-bit integer which includes anon-uid/gid which have value '-2' by default. Since it doesn't map to nfsnobody user ID on the client machine, client shall display integer value instead. This is by design of nfs-gansha. In case if those anon IDs have to be mapped to nfsnobody, configure those values in the nfs-ganesha export file explicitly.