Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

File Share Troubleshooting

Direct answer

File share troubleshooting separates network, protocol version, authentication, share definition and file permission problems for NFS and SMB.

When to use this

Use it when a share does not mount, is slow, or denies access.

First 30 seconds

1. Reachability: nc -vz <server> 2049 / 445.

2. Share/export visible (showmount -e, smbclient -L).

3. Mount with verbose options and read dmesg.

4. After mount: ls -ln — IDs as expected?

5. Server logs and SELinux denials.

Operational verification

network → protocol → authentication → share/export → file permissions

Evidence · next step

For File Services → File Share Troubleshooting, continue with the first unproven Topic check: Capture exact time, client/server, protocol, share/export, identity, mount/session options and failing file operation. If that boundary is healthy, advance to the adjacent check: Test boundaries in order from network/protocol through identity/share policy to backend mount and permissions. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
linux
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.

Platformlinux
Key commandfindmnt -t nfs,nfs4,cifs
Scope / prerequisiteUse it when a share does not mount, is slow, or denies access.
Verify · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Linux command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

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

5 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 Operational evidence path Verify boundary

symptom/time → client/server scope → resolver/route/firewall → protocol/session → auth/identity map → export/share policy → backend mount + DAC/ACL/LSM → fresh I/O → original workload

Healthy evidence: the original failure is reproduced, client/server evidence identifies one first failing step, correction restores fresh I/O for the intended identity and neighboring access remains correct

Step 2 Commands Verify boundary
showmount -e server
smbclient -L //server -U user
dmesg -T | grep -iE 'nfs|cifs'
Step 3 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Capture exact time, client/server, protocol, share/export, identity, mount/session options and failing file operation.

  • Test boundaries in order from network/protocol through identity/share policy to backend mount and permissions.
  • Correlate client/server/service/security evidence for one fresh operation and locate the first failure.
  • Apply the smallest persistent cause-specific change, reconnect if required, then repeat original and regression operations.

Verification chain. symptom/time → client/server scope → resolver/route/firewall → protocol/session → auth/identity map → export/share policy → backend mount + DAC/ACL/LSM → fresh I/O → original workload

Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: stale mount/session is mistaken for health, tests switch users or clients, server-local access is treated as remote evidence, permissions are changed broadly, or reconnect/restart masks the cause

Step 5 Common mistakes Narrow the fault
  • Not checking firewall ports (2049, 445).
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

Error type points the way: timeout → network/firewall; protocol/version errors → negotiate the version; access denied → export/share list or credentials; permission denied after mount → file ownership, ID mapping or SELinux.

Key checks
  • showmount -e <server> / exportfs -v — NFS exports
  • findmnt -t nfs,nfs4,cifs — mounted network shares
  • smbclient -L //<server> -U <user> — SMB shares
  • testparm -s — Samba configuration check
ReferenceHow it works1 section · depth on demand

How it works

How it works: systemd resolves unit files/drop-ins, dependencies/order, conditions and environment, then forks/execs or activates the service and tracks its main process/readiness according to Type.

ReferenceImportant terms & boundaries5 sections · depth on demand

What this shows and what it does not

Troubleshooting is resolved when the first failed share boundary is confirmed and the original client operation succeeds after a minimal persistent correction without collateral access regression.

In depth

NFS server: what is actually exported

# exportfs -v
/srv/projects  10.0.10.0/24(sync,wdelay,hide,no_subtree_check,sec=sys,rw,secure,root_squash,no_all_squash)
# exportfs -r          # re-read /etc/exports and /etc/exports.d
# exportfs -s          # current exports in /etc/exports format

The exportfs manual documents -v (show exports with options), -r (re-export everything, syncing with /etc/exports and /etc/exports.d) and -s (print current exports in exports-file format). Editing /etc/exports without exportfs -r changes nothing.

NFS client checks

CheckCommand
Server reachable, exports visibleshowmount -e nfs01 (NFSv3)
Mount with explicit versionmount -t nfs -o vers=4.2 nfs01:/srv/projects /mnt
Mount options in usenfsstat -m, findmnt -t nfs4
Retransmits / timeoutsnfsstat -rc (retrans), mountstats
SymptomCause
access denied by server while mountingClient IP not in the export, or wrong path for NFSv4 pseudo-root
Files owned by nobodyNFSv4 ID mapping domain mismatch (/etc/idmapd.conf Domain=) or root_squash
Root cannot writeroot_squash (default) — intended
Hangs, processes in D stateServer unreachable with hard mounts — the client waits forever by design
Stale file handleExport path changed/recreated on the server — remount

SMB (Samba) equivalents

CheckCommand
Configuration validtestparm -s
Shares and connectionssmbclient -L //fs01 -U alice, smbstatus
Client mountmount -t cifs //fs01/data /mnt -o username=alice,vers=3.1.1
Permission mappingvalid users, force user, file system ACLs on the server

Firewall and ports

NFSv4 needs only TCP 2049; NFSv3 also needs rpcbind (111) and dynamic mountd/statd ports unless they are pinned. Samba uses TCP 445.

*The exportfs listing illustrates NFS export options and does not describe a deployed file share.*

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

How it works at runtime

File Share Troubleshooting is part of File Services → File Share Troubleshooting. File Share Troubleshooting isolates NFS/SMB failures from client resolution and transport through protocol/session, authentication/identity mapping, export/share policy, backend mount/permissions and fresh application I/O.

Topic-specific state model. File Share Troubleshooting isolates NFS/SMB failures from client resolution and transport through protocol/session, authentication/identity mapping, export/share policy, backend mount/permissions and fresh application I/O.

Interpretation rule. - Mounted/connected state ≠ fresh share I/O.

  • Authentication success ≠ filesystem authorization.
  • Server-local access ≠ remote mapped-identity access.
  • Restart/remount recovery ≠ durable root-cause remediation.

Method

File share troubleshooting:

SymptomCheck
NFS access denied by serverExport list, client IP/hostname, exportfs -v
NFS files owned by nobodyidmap domain mismatch
NFS mount hangsFirewall, server down (hard mount), rpcbind for v3
CIFS mount error(13)Credentials, domain, NTLM disabled (use Kerberos)
CIFS mount error(95)SMB dialect mismatch (vers=)
Samba access deniedShare valid users, filesystem perms, SELinux label
mount -v -t nfs4 nfs01:/srv/projects /mnt/t
dmesg | grep -iE 'cifs|nfs' | tail
smbclient -L //fs01 -k -d3
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Limits and how it fails

Primary failure point. Troubleshooting is resolved when the first failed share boundary is confirmed and the original client operation succeeds after a minimal persistent correction without collateral access regression.

DNS success does not show protocol reachability.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. File Share Troubleshooting owns isolation and hands off to NFS, Samba/SMB, Networking, Storage, Permissions or Security once the failing step is identified.

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 doclinux current

Authoritative/upstream documentation reviewed for bounded claims in File Services → File Share Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.samba.org/samba/docs/ · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
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
file share troubleshootingnfs smb troubleshootingnetwork share troubleshooting linux
Embedded reference data

Quick lookup tables

File Share Troubleshooting operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for File Share Troubleshooting.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateFile Share Troubleshooting isolates NFS/SMB failures from client resolution and transport through protocol/session, authentication/identity mapping, export/share policy, backend mount/permissions and fresh application I/O.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin exact client/server + time + request/file operation → identify authoritative configuration → read back effective service/listener/session state → trace protocol selection/auth/identity → verify backend/upstream boundary → correlate logs → make smallest persistent change → repeat original workload + regression check.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chainsymptom/time → client/server scope → resolver/route/firewall → protocol/session → auth/identity map → export/share policy → backend mount + DAC/ACL/LSM → fresh I/O → original workloadTrace requested/configured state through effective state to the observed workload result.
Failure boundaryTroubleshooting closes when the first failed share boundary is proven and the original client operation succeeds after a minimal persistent correction without collateral access regression.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux web/file-service evidence can establish this proof path: symptom/time → client/server scope → resolver/route/firewall → protocol/session → auth/identity map → export/share policy → backend mount + DAC/ACL/LSM → fresh I/O → original workloadUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove unobserved clients, names, identities, routes, sessions, backends or time periods. Troubleshooting closes when the first failed share boundary is proven and the original client operation succeeds after a minimal persistent correction without collateral access regression.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven service boundary, capture adjacent effective state and protocol/application evidence, make only the demonstrated persistent change, then repeat the original client workload plus a regression check.Continue to the next unresolved boundary while preserving the original test condition.

File Share Troubleshooting · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryFile Share Troubleshooting
Topic pathFile Services → File Share Troubleshooting
Runtime stateFile Share Troubleshooting isolates NFS/SMB failures from client resolution and transport through protocol/session, authentication/identity mapping, export/share policy, backend mount/permissions and fresh application I/O.
Fast checks- Capture exact time, client/server, protocol, share/export, identity, mount/session options and failing file operation. - Test boundaries in order from network/protocol through identity/share policy to backend mount and permissions. - Correlate client/server/service/security evidence for one fresh operation and locate the first failure. - Apply the smallest persistent cause-specific change, reconnect if required, then repeat original and regression operations.
Verification chainsymptom/time → client/server scope → resolver/route/firewall → protocol/session → auth/identity map → export/share policy → backend mount + DAC/ACL/LSM → fresh I/O → original workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Failure boundaryTroubleshooting closes when the first failed share boundary is proven and the original client operation succeeds after a minimal persistent correction without collateral access regression. Boundary chain: unit config/drop-ins → dependency/order/condition → exec/process → readiness/active state → owned socket/file/device → dependent client/workload.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?