Enable and disable file sharing from terminal
Is there a way to enable and disable file sharing from the terminal?
I'm not able to connect to the share after a reboot. Apples forces me to disable and enable the file sharing service in the system preferences by hand.
launchctl unload -w /System/Library/LaunchDaemons/com.apple.smbd.plist
launchctl load -w /System/Library/LaunchDaemons/com.apple.smbd.plist
and also killing the smb process (will start again) doesn't work.
Any ideas? Back to 10.5 or so? 😉 It's really hard to see that apples samba is getting worser and worser with each release.
Using the terminal would allow me to apply this "fix" automatically on a restart.
OS X El Capitan (10.11.3), Finder, NAS, shares