Last active
November 24, 2024 06:12
-
-
Save ralexx/51dbc4f49c91fc1b929d2752a381cbf7 to your computer and use it in GitHub Desktop.
macOS samba tuning
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
#!/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