Pcornel
Storage · SMB

Shares

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

Back to the Topic

Answer

Clients tree-connect to a share name, not directly to the server filesystem path. The share layer can restrict remote access independently of filesystem ACLs and can expose only a selected subtree.

Remember

  • Share ≠ folder path conceptually.
  • Share exists ≠ user can connect.
  • Share permission allow ≠ NTFS/filesystem allow.
  • UNC path success ≠ local path semantics identical.

First checks

  • Get-SmbShare | ft Name,Path,Description — shares
  • Get-SmbShareAccess <share> — share ACL
  • New-SmbShare -Name data -Path D:\Data -FullAccess 'DOMAIN\Data-RW' — create

Verify in this order

folder → share → clients

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 → Shares 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 boundaryA valid share mapping proves the namespace target, not that every authenticated user has access or that the backing path is healthy.Correlate client, network, server and filesystem evidence for the same operation/time window
AcceptanceHealthy evidence: share resolves to the intended backing path, expected identity tree-connects and required operations pass both share and filesystem authorization.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=4150

Confirmation

Confirm action

Continue?