SMB
Cheat sheet · https://pcornel.dk/topic.php?topic=4146
Answer
An SMB workload resolves a server, establishes transport, negotiates a dialect and security capabilities, authenticates a session, connects to a share, passes share and filesystem authorization, then performs file operations against the server backend.
Remember
- TCP 445 reachable ≠ SMB authentication or share access.
- SMB session authenticated ≠ file authorized.
- SMB signing ≠ encryption.
- SMB share ≠ underlying filesystem path or backup.
First checks
Get-SmbShare— shares (server)Get-SmbConnection | ft ServerName,ShareName,Dialect,NumOpens— client connectionssmbstatus— Samba sessions
Verify in this order
client → SMB3 (445) → server → NTFS/ACL
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.
SMB 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 | SMB transport or session success proves only part of the access chain; it does not prove share existence, authorization, durable writes, HA behavior or application consistency. | Correlate client, network, server and filesystem evidence for the same operation/time window |
| Acceptance | Healthy evidence: intended dialect/security are negotiated, the correct identity authenticates, expected share and filesystem access succeeds, and representative data is read back from the server. | 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=4146