What is the terminal command to stop and restart Samba (SMB) ?

Discussion in 'macOS' started by techmonkey, Jul 4, 2009.

  1. techmonkey macrumors 6502a

    Joined:
    Jun 8, 2007
    #1
    Sometimes my windows shares cannot connect and I have to restart my MBP to get it to work. A couple of months ago I found a terminal command to restart samba which saved me from restarting my MBP. I misplaced the command.

    Anyone know the command?
     
  2. mrchinchilla macrumors 6502

    mrchinchilla

    Joined:
    Mar 6, 2009
    #2
    Try
    Code:
    /System/Library/StartupItems/Samba/Samba start
    Or
    Code:
    /usr/sbin/serveradmin start smb
    Replace 'start' with 'stop' to stop.
     
  3. techmonkey thread starter macrumors 6502a

    Joined:
    Jun 8, 2007
    #3
    I get

    /usr/sbin/serveradmin/: No such file or directory
     

Share This Page