Use it when the storage question has been narrowed to NFS → UID / GID Mapping. Start from the exact remote path and operation, then separate transport, protocol/session or mount state, identity/security, share/export authorization, filesystem authorization and backend I/O before changing configuration.
UID / GID Mapping
With numeric AUTH_SYS-style identity, matching UID/GID values across systems is critical; other security mechanisms can use authenticated identities that are mapped server-side. The effective server credential, not the client username string alone, determines filesystem authorization.
1. AUTH_SYS uses numeric UIDs/GIDs — must match across hosts.
2. NFSv4 maps names via idmapd domain.
3. "nobody" owners = idmap domain mismatch.
4. Use central identity (LDAP/AD/SSSD).
5. Kerberos maps principals.
client UID → (idmap) → server UID → permissions
Context & applicabilityCommon mistakes · platform/version boundaries
Correct identity mapping shows who the server evaluates, not that permissions, export policy or application-specific ACL logic allow the requested operation.
Suspicious evidence: same names with different numeric IDs, missing supplementary groups, anonymous mapping, domain/idmap mismatch or files created with unexpected ownership.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
client process credential → NFS security flavor → server identity mapping → filesystem owner/group/ACL → operation
Healthy evidence: client credentials map to the intended server identity/groups and newly created files show expected ownership under the selected security model.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Same username ≠ same UID/GID.
- Client UID 1000 ≠ server user automatically.
- Identity mapping ≠ filesystem permission grant.
- NFSv4 identity strings/security ≠ simple numeric AUTH_SYS behavior in every deployment.
id <user>— local UID/GIDcat /etc/idmapd.conf | grep Domain— NFSv4 ID domainls -ln <nfs path>— numeric owners
ReferenceHow it works1 section · depth on demand
How it works
How it works: Remote file I/O crosses client name/routing/authentication, mount/session negotiation, protocol permissions/locking/caching, server filesystem and backend storage.
ReferenceImportant terms & boundaries2 sections · depth on demand
Namespace and identity
Correct identity mapping shows who the server evaluates, not that permissions, export policy or application-specific ACL logic allow the requested operation.
In depth
With AUTH_SYS the server trusts the numeric UID/GID the client sends, so the same user must have the same numbers everywhere — normally through LDAP/AD (SSSD) rather than local /etc/passwd.
NFSv4 sends names (alice@corp.example.com) for ownership in attributes, translated by idmapd; both sides must use the same Domain in /etc/idmapd.conf. If they differ, files show as owned by nobody even though access may still work by numeric UID.
nfsidmap -c # clear the client idmap cache
grep -i ^Domain /etc/idmapd.conf
id alice; getent passwd alice
cat /sys/module/nfs/parameters/nfs4_disable_idmapping
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in NFS → UID / GID Mapping. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc8881 · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
NFS → UID / GID Mapping file-service map
Fast namespace, protocol, identity, authorization and proof boundaries for NFS → UID / GID Mapping.
| File-service boundary | What to verify | Proof limit |
|---|---|---|
| Endpoint / namespace | Correct client, server, export/share, path and negotiated protocol version | Reachability or namespace visibility does not prove authorization or backend health |
| Identity / security | Effective identity, protocol security state and export/share/filesystem authorization | Authentication or one permission layer does not prove complete file access |
| Failure boundary | Correct identity mapping proves who the server evaluates, not that permissions, export policy or application-specific ACL logic allow the requested operation. | Correlate client, network, server and filesystem evidence for the same operation/time window |
| Acceptance | Healthy evidence: client credentials map to the intended server identity/groups and newly created files show expected ownership under the selected security model. | Close only after the original operation and server-side/read-back verification succeeds |