Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

UID / GID Mapping

Direct answer

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.

When to use this

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.

First 30 seconds

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.

Operational verification

client UID → (idmap) → server UID → permissions

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

Platform / version applicability
Network file storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformNetwork file storage
Scope / prerequisiteUse it when the storage question has been narrowed to NFS → UID / GID Mapping. Start from the exact remote path and ope…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • id <user> — local UID/GID
  • cat /etc/idmapd.conf | grep Domain — NFSv4 ID domain
  • ls -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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docNetwork file storage current

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%
Terminology layer

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.

Aliases that resolve here
nfs uid gidnfs id mappingnfs ownership mismatch
Embedded reference data

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 boundaryWhat to verifyProof limit
Endpoint / namespaceCorrect client, server, export/share, path and negotiated protocol versionReachability or namespace visibility does not prove authorization or backend health
Identity / securityEffective identity, protocol security state and export/share/filesystem authorizationAuthentication or one permission layer does not prove complete file access
Failure boundaryCorrect 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?