Shares
Cheat sheet · https://pcornel.dk/topic.php?topic=4150
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— sharesGet-SmbShareAccess <share>— share ACLNew-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 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 | A 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 |
| Acceptance | Healthy 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