Permissions
Cheat sheet · https://pcornel.dk/topic.php?topic=4143
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 ownershipgetfacl <path>— POSIX ACLsnfs4_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 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 | A 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 |
| Acceptance | Healthy 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