Pcornel
Storage · SMB

SMB Troubleshooting

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

Back to the Topic

Answer

Start with the exact UNC path, user, operation, error and timestamp. Prove each protocol phase in order and correlate client/server evidence before changing credentials, ACLs, signing/encryption policy or network settings.

Remember

  • TCP 445 open ≠ SMB working.
  • Access denied ≠ share missing.
  • Authentication success ≠ authorization success.
  • Reconnect/reboot success ≠ root cause.

First checks

  • Get-SmbConnection; Test-NetConnection <srv> -Port 445 — connection
  • Get-WinEvent -LogName Microsoft-Windows-SmbClient/Connectivity -MaxEvents 30 — client errors
  • smbstatus; testparm -s — Samba

Commands

smbclient -L //<server> -U <user>
Enumerate SMB server shares from a client. Focus fields: server negotiation, authentication result, share names/types a…

Verify in this order

client → DNS → 445 → auth → share → NTFS

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 Troubleshooting 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 boundaryTroubleshooting closes only when the first failed SMB boundary is explained and the original workload succeeds; clearing credentials or restarting services alone is not root-cause evidence.Correlate client, network, server and filesystem evidence for the same operation/time window
AcceptanceHealthy evidence: the original failing SMB operation succeeds with intended dialect/security/identity, both authorization layers are correct and server-side data read-back is verified.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=4159

Confirmation

Confirm action

Continue?