Export
Cheat sheet · https://pcornel.dk/topic.php?topic=4137
Answer
An NFS export is a directory the server shares, together with rules for which clients may mount it and how (read-only, root squash, security mode). The export rules are checked first; normal file permissions apply after that.
Remember
- Export ≠ mount.
- Export allowed ≠ filesystem permission allowed.
- Export path ≠ guaranteed healthy backing filesystem.
- Read-write export ≠ every client/user can write.
First checks
exportfs -v— exports and optionsshowmount -e <server>— exports from clientcat /etc/exports— rules
Verify in this order
path + client + options → export
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 → Export 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 | An export can authorize a client to reach a namespace while the underlying filesystem still denies the operation or the backing storage is unhealthy. | Correlate client, network, server and filesystem evidence for the same operation/time window |
| Acceptance | Healthy evidence: effective export policy selects the intended client, exposes the intended server path with expected access/security options, and client operations map to correct ownership. | 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=4137