Skip to content

Instantly share code, notes, and snippets.

@ralexx
Last active November 24, 2024 06:12
Show Gist options
  • Save ralexx/51dbc4f49c91fc1b929d2752a381cbf7 to your computer and use it in GitHub Desktop.
Save ralexx/51dbc4f49c91fc1b929d2752a381cbf7 to your computer and use it in GitHub Desktop.
macOS samba tuning
#!/bin/bash
# https://www.reddit.com/r/MacOS/comments/18sjnwb/comment/kf9az6i/
# https://gist.github.com/jbfriedrich/49b186473486ac72c4fe194af01288be
sudo -s
cp /private/etc/nsmb.conf /private/etc/nsmb.conf.bak
sudo echo "[default]\nsigning_required=no\nstreams=yes\nnotify_off=yes\nport445=no_netbios\nunix extensions = no\nveto files=/._*/.DS_Store/\nprotocol_vers_map=4" >> /etc/nsmb.conf
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
exit
sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment