Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

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,


Derek

Mac OS X (10.7.4), Mac OSX Lion Server

Posted on May 11, 2012 7:24 AM

Reply
1 reply

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.

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

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.