I’ve just bought my first Mac I want to connect it directly to the Internet in a colocation facility.

Running nmap against it shows:

Starting Nmap 6.40 ( http://nmap.org ) at 2015-02-18 21:54 GMT
Nmap scan report for foo.bar (
Host is up (0.00036s latency).
rDNS record for
Not shown: 997 closed ports
22/tcp   open  ssh
88/tcp   open  kerberos-sec
5900/tcp open  vnc
MAC Address: 01:23:45:67:89:AB (Apple)

I’ve deliberately started the SSH and VNC services.

What has started kerberos?

Is it okay for that port to be open to the Internet?

If not, how can I close it? When I tried setting up the firewall, the only applications were Remote Management (VNC) and Remote Login (SSH).

2 Answers 2


It seems that kerberos-sec on port 88 is an authentication method connected to AFP (Apple Filing Protocol) or SMB (Samba) file sharing. If you wish to disable it, you can as per the instructions on this site. This should work for Mac OS X 10.6.8 and below:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.kdcmond.plist

For Mac OS X 10.7 (Lion) and above the command would be:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.Kerberos.kdc.plist

If you wish to enable it again, just change unload to load like this:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.Kerberos.kdc.plist

I had used the File Share feature earlier and turned it off, but somehow the port was still open. So I just went there again, checked and unchecked it and after running nmap it was closed!

System Preferences > Sharing > File Share: set it to off

enter image description here

  • 1
    Since the only thing I shared was the public folder, I just turned off file & screen sharing and this also solved my port 88 already in use issue with some application using docker-compose in development. Jul 22, 2021 at 15:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.