Pcornel
Storage · SMB

SMB Fundamentals

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

Back to the Topic

Answer

SMB is session-oriented: transport establishment is followed by dialect/capability negotiation, user authentication, share connection and file opens/leases before application I/O. Each stage has distinct failure evidence.

Remember

  • SMB connection ≠ authenticated session.
  • Authenticated session ≠ share tree connected.
  • Share access ≠ file ACL access.
  • Dialect version ≠ every optional feature active.

First checks

  • Get-SmbServerConfiguration | fl EnableSMB1Protocol,EnableSMB2Protocol,RequireSecuritySignature,EncryptData — server config
  • Get-SmbConnection — dialects in use
  • Test-NetConnection <server> -Port 445 — reachability

Verify in this order

negotiate → session setup (auth) → tree connect → file ops

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 → SMB Fundamentals 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 boundaryOne successful SMB phase does not prove later phases; use protocol/session evidence to locate the first failed boundary.Correlate client, network, server and filesystem evidence for the same operation/time window
AcceptanceHealthy evidence: negotiate, authentication, tree connect and required file operations all succeed with the expected dialect and security state.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=4147

Confirmation

Confirm action

Continue?