Skip navigation

How to remove/disable/kill Samba 3 on lion server

1100 Views 1 Reply Latest reply: May 11, 2012 11:10 AM by Camelot RSS
DerVon Calculating status...
Currently Being Moderated
May 11, 2012 7:24 AM

Hey All,


I installed Samba 3 on my Lion Server in an attempt to connect Windows users via LDAP auth. Turned out to be more than I could wrap my brain around. So I ended up using pGina and it works great for what I need (basic user management).


I would like to remove or disable Samba 3 as it is still running behind the scenes and every other line in my log is related to it.


I tried running uninstall through mac ports but I fear I just unistalled mac ports instead. (I am a little new at this).


Is there a way to remove samba 3 via terminal? Or even just shut it off so it stops running?


Any help would be much appreciated,



Mac OS X (10.7.4), Mac OSX Lion Server
  • Camelot Level 8 Level 8 (45,670 points)
    Currently Being Moderated
    May 11, 2012 11:10 AM (in response to DerVon)

    The chances are that any background service, whether via MacPorts or not, is controlled via LaunchD, and there are just a couple of places that LaunchD looks for processes to manage.


    Each process has a corresponding .plist file that tells launchd what, and how, to run - your fix should be as simple as finding this file and either unloading it (to shutdown the process) or removing it and rebooting (so that it doesn't load next time).


    So look in /Library/LaunchDaemons for a file that corresponds to your Samba 3 process. The simple fix is to remove it and reboot, or you can:


    sudo launchctl unload -w name.of.the.plist

    (where name.of.the.plist is the name of the file you want to unload). The 'unload' tells launchd to kill the process, and the -w switch writes that change so that it's persistent across reboots.


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.