UIDs/GIDs of NFS mount are lost
Description:
Since the recent update to nfs-utils/nfsidmap from 2.8.1-1 to 2.8.2-1 id map functionality for NFSv4 volumes is lost. Instead of mapping files/directories to existing ID/GID, all mapped to infamous "2^32-2".
id myusername
uid=1026(myusername) gid=1026(myusername) groups=1026(myusername)..........
ls -la vol/Archives/ | grep myarchive
drwxrwxr-x 17 4294967294 4294967294 4096 Jun 6 2024 myarchive
When run nfsidmap, there is an error:
sudo nfsidmap -d
nfsidmap: Unable to create name to user id mappings.
Additional info:
- package version(s): nfs-tools 2.8.2-1, nfsidmap 2.8.2-1
- config and/or log files: standard distribution configuration for NFS client, standard NFS server configuration with "sec=sys" (on Synology NAS)
- link to upstream bug report, if any: N/A
Steps to reproduce:
- Upgrade mentioned packages to the most recent version 2.8.2-1
- Mount NFS volume
- List directory on the volume and observe wrong UID/GID
- Roll back to previous version of packages
- Ensure the proper ID/GID values have come back:
pacman -Ss nfs
.....
core/nfs-utils 2.8.2-1 [installed: 2.8.1-1]
Support programs for Network File Systems
.....
ls -la vol/Archives/ | grep myarchive
drwxrwxr-x 17 myusername users 4096 Jun 6 2024 myarchive
Edited by Aleksandr Beliaev