Pcornel
Storage · NFS

Permissions

Cheat sheet · https://pcornel.dk/topic.php?topic=4143

Back to the Topic

Answer

NFS access is not decided by one permission layer. The client must be allowed by the export/security policy, map to the intended server identity, and then pass the backing filesystem authorization for the requested operation.

Remember

  • Export read-write ≠ user write permission.
  • Mode bits visible on client ≠ effective server authorization in every security model.
  • Root squash ≠ general user permission policy.
  • Permission denied ≠ network failure.

First checks

  • ls -ln <path> — numeric ownership
  • getfacl <path> — POSIX ACLs
  • nfs4_getfacl <path> — NFSv4 ACLs

Verify in this order

client identity → server ACL check

Where it usually breaks

First mismatch in client identity/DNS → network transport → protocol session → authentication/authorization → export/share → backend filesystem → file operation; preserve identity/pre-state before mutation.

NFS → Permissions file-service map

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 boundaryA correct filesystem ACL does not prove the export/security layer admits the client, and an allowed export does not prove the filesystem grants the operation.Correlate client, network, server and filesystem evidence for the same operation/time window
AcceptanceHealthy evidence: effective identity is known, export policy permits the client and filesystem authorization grants exactly the required operation without excessive privilege.Close only after the original operation and server-side/read-back verification succeeds

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4143

Confirmation

Confirm action

Continue?