Last active
April 10, 2025 12:48
-
Star
(113)
You must be signed in to star a gist -
Fork
(18)
You must be signed in to fork a gist
-
-
Save jbfriedrich/49b186473486ac72c4fe194af01288be to your computer and use it in GitHub Desktop.
macOS 11.2 NSMB configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/nsmb.conf - macOS 11.3 - 2021-04-29 | |
#------------------------------------------------------------------------------ | |
# SMB configuration for macOS 11.3 <-> Synology | |
#------------------------------------------------------------------------------ | |
# Additional information: | |
# ----------------------- | |
# https://support.apple.com/de-de/HT211927 | |
# https://support.apple.com/en-us/HT208209 | |
# https://apple.stackexchange.com/questions/309016/smb-share-deadlocks-since-high-sierra | |
# https://photographylife.com/afp-vs-nfs-vs-smb-performance | |
# https://support.apple.com/de-de/HT212277 | |
#------------------------------------------------------------------------------ | |
[default] | |
# Use NTFS streams if supported | |
streams=yes | |
# Soft mount by default | |
soft=yes | |
# Disable signing due to macOS bug | |
signing_required=no | |
# Disable directory caching | |
dir_cache_off=yes | |
# Lock negotiation to SMB2/3 only | |
# 7 == 0111 SMB 1/2/3 should be enabled | |
# 6 == 0110 SMB 2/3 should be enabled | |
# 4 == 0100 SMB 3 should be enabled | |
protocol_vers_map=6 | |
# No SMB1, so we disable NetBIOS | |
port445=no_netbios | |
# Turn off notifications | |
notify_off=yes | |
# SMB Multichannel behavior | |
# To disable multichannel support completely uncomment the next line | |
# mc_on=no | |
# Some Wi-Fi networks advertise faster speeds than the connected wired network. | |
mc_prefer_wired=yes |
Why the below two? Context?
# Disable signing due to macOS bug
signing_required=no
# Disable directory caching
dir_cache_off=yes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It needs to be taken into account, that some parameters of SMB config are used/work on macOS and some not (but all work on Linux), so for example port mapping does not work in macOS, so my all (I use it in both macOS and Linux) parameters config file: