Use it when the storage question has been narrowed to SMB → SMB Client. Start from the exact remote path and operation, then separate transport, protocol/session or mount state, identity/security, share/export authorization, filesystem authorization and backend I/O before changing configuration.
SMB Client
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.
1. SMB client connects to shares (net use, mapped drives, mount.cifs).
2. Linux: cifs-utils with vers=3.x.
3. Credentials via Kerberos or credential files (chmod 600).
4. Offline files/caching on Windows.
5. Check dialect.
client → SMB session → share
Context & applicabilityCommon mistakes · platform/version boundaries
Client-side connection state shows this client view only and does not establish server backend health or another client’s identity/policy.
Suspicious evidence: alias/SPN/name mismatch, stale credentials, guest fallback, dialect incompatibility or reconnect loops isolated to one client.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Mapped drive ≠ live SMB session.
- Cached credentials ≠ intended identity.
- One client works ≠ server universally healthy.
- TCP connection ≠ dialect/security compatibility.
Get-SmbConnection— connections and dialectGet-SmbMapping— mapped drivesmount -t cifs //srv/share /mnt -o vers=3.1.1,sec=krb5— Linux client
ReferenceImportant terms & boundaries3 sections · depth on demand
Namespace and identity
Client-side connection state shows this client view only and does not establish server backend health or another client’s identity/policy.
In depth
Mounting SMB shares on Linux reliably
mount.cifs(8) documents the options that decide whether a Linux SMB mount works and behaves well:
| Option | Meaning |
|---|---|
credentials=FILE | File with username=, password= and optional domain=; preferred over passwords in /etc/fstab |
vers= | Dialect: default negotiates the highest SMB2+ version; SMB1 is not requested by default |
sec= | ntlmssp (default), krb5, and i variants that force signing |
uid=, gid=, forceuid, forcegid | Owner shown for files when the server sends no Unix ownership |
file_mode=, dir_mode= | Permissions shown when the server lacks Unix extensions |
# install -m 600 /dev/null /root/.smb-fs01
# printf 'username=svc-linux\npassword=...\ndomain=CORP\n' > /root/.smb-fs01
# cat /etc/fstab | grep cifs
//fs01.corp.example.com/projects /mnt/projects cifs credentials=/root/.smb-fs01,vers=3.1.1,uid=1000,gid=1000,file_mode=0660,dir_mode=0770,_netdev,x-systemd.automount 0 0
# mount /mnt/projects
# grep -i dialect /proc/fs/cifs/DebugData
Kerberos instead of a stored password
# kinit svc-linux@CORP.EXAMPLE.COM
# mount -t cifs //fs01.corp.example.com/projects /mnt/projects -o sec=krb5,vers=3.1.1,cruid=1000
Use the server's DNS name with Kerberos. An IP address has no matching service principal.
Behaviour to expect
| Situation | Behaviour |
|---|---|
| All files owned by one user | Normal without Unix extensions; ownership comes from uid=/gid= |
chmod has no effect | Same reason; permissions are enforced on the server |
| Boot hangs on a missing server | Add _netdev and x-systemd.automount |
| Options seem ignored | The manual says to check dmesg; unknown options are logged there |
Use --verbose before -o for more output while debugging.
Documented example, not captured output.
Quick reference
The Windows client (LanmanWorkstation) negotiates the highest dialect both sides support and maps shares to drive letters or uses UNC paths directly.
New-SmbMapping -LocalPath S: -RemotePath \\fs01\Projects -Persistent $true
Get-SmbConnection
Get-SmbClientConfiguration | Select RequireSecuritySignature,EnableMultiChannel
net use
Linux clients use the kernel CIFS module:
mount -t cifs //fs01/Projects /mnt/projects -o vers=3.1.1,sec=krb5,cruid=alice,uid=alice,file_mode=0660,dir_mode=0770
smbclient -L //fs01 -k
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in SMB → SMB Client. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-smb2/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
SMB → SMB Client file-service map
Fast namespace, protocol, identity, authorization and proof boundaries for SMB → SMB Client.
| 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 | Client-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 |
| Acceptance | Healthy 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 |