Pcornel
Storage · SMB

SMB Client

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

Back to the Topic

Answer

The client converts UNC/path operations into SMB requests and maintains sessions, connections, leases/oplocks and reconnect behavior. Client-side cached credentials, name resolution and negotiated policy can differ from another client.

Remember

  • Mapped drive ≠ live SMB session.
  • Cached credentials ≠ intended identity.
  • One client works ≠ server universally healthy.
  • TCP connection ≠ dialect/security compatibility.

First checks

  • Get-SmbConnection — connections and dialect
  • Get-SmbMapping — mapped drives
  • mount -t cifs //srv/share /mnt -o vers=3.1.1,sec=krb5 — Linux client

Verify in this order

client → SMB session → share

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 Client 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 boundaryClient-side connection state proves this client view only and does not establish server backend health or another client’s identity/policy.Correlate client, network, server and filesystem evidence for the same operation/time window
AcceptanceHealthy evidence: correct server name resolves, intended identity is used, expected dialect/security are negotiated and required share/file operations succeed.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=4148

Confirmation

Confirm action

Continue?