Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

SMB Client

Direct 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.

When to use this

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.

First 30 seconds

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.

Operational verification

client → SMB session → share

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

Platform / version applicability
Network file storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformNetwork file storage
Scope / prerequisiteUse it when the storage question has been narrowed to SMB → SMB Client. Start from the exact remote path and operation,…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

application → SMB client redirector → DNS/TCP → negotiate/session → share → server filesystem

Healthy evidence: correct server name resolves, intended identity is used, expected dialect/security are negotiated and required share/file operations succeed.

Evidence references

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.

observation · 1
Key points
  • Mapped drive ≠ live SMB session.
  • Cached credentials ≠ intended identity.
  • One client works ≠ server universally healthy.
  • TCP connection ≠ dialect/security compatibility.
Key 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
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:

OptionMeaning
credentials=FILEFile 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, forcegidOwner 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

SituationBehaviour
All files owned by one userNormal without Unix extensions; ownership comes from uid=/gid=
chmod has no effectSame reason; permissions are enforced on the server
Boot hangs on a missing serverAdd _netdev and x-systemd.automount
Options seem ignoredThe manual says to check dmesg; unknown options are logged there

Use --verbose before -o for more output while debugging.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docNetwork file storage current

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%
Terminology layer

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.

Aliases that resolve here
smb clientcifs clientwindows smb client
Embedded reference data

Quick lookup tables

SMB → SMB Client file-service map

Fast namespace, protocol, identity, authorization and proof boundaries for SMB → SMB Client.

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
Confirmation

Confirm action

Continue?