SMB
Cheat sheet · https://pcornel.dk/topic.php?topic=2886
Answer
SMB (Server Message Block) is the file-sharing protocol used by Windows and served by Samba on Linux; Linux clients mount SMB shares with mount.cifs (mount -t cifs).
Remember
Specify the version (vers=3.0) — SMB1 is disabled almost everywhere. Store credentials in a root-only file (credentials=). Set uid/gid/file_mode for local ownership.
First checks
showmount -e <server> / exportfs -v— NFS exportsfindmnt -t nfs,nfs4,cifs— mounted network sharessmbclient -L //<server> -U <user>— SMB sharestestparm -s— Samba configuration check
Commands
mount -t cifsmount error(13): Permission deniedmount error(95): Operation not supportedfindmnt
Verify in this order
client → TCP 445 → SMB negotiation (version, signing) → authentication → share mounted
Where it usually breaks
First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2886