4

I am trying to enable SAMBA (SMB) from terminal.

This enables AFP and File Sharing:

sudo launchctl load -F /System/Library/LaunchDaemons/com.apple.AppleFileServer.plist

But I want enable SMB too from terminal. How can I do that? I need this for MAC OS X (10.5, 10.6, 10.7).

P.S. Same effect if you go to System Preferences->Sharing->File Sharing->SMB (Windows) need to be enabled.

Kazark
  • 3,509
User1234
  • 247

2 Answers2

3

If you run the following:

sudo launchctl load -F /System/Library/LaunchDaemons/com.apple.smbd.plist

The service will launch, although the GUI won't update (as you force loading the service, even if disabled).

You can also remove the Disabled flag from the file and have it load regularly.


You can also run /usr/sbin/smbd directly, as root.

Daniel Beck
  • 111,893
1

On Snow Leopard it's /System/Library/LaunchDaemons/smbd.plist