How to disable the Finder’s ‘Connect to Server’ option

Here’s another great little snippet to add to my ‘how to disable’ series!

The OS X Finder’s ‘Connect to Server’ menubar option allows a user to specify a network address to connect to for services such as file sharing and VNC.

If you decide that you don’t want users to be able to access the OS X Finder’s ‘Connect to Server’ menubar option as shown below, this can easily be disabled.

how to disable finders connect to server

To remove the ‘Connect to Server’ option, all you need to do is log in as an admin user and enter one line of command in the Terminal application (located in /Applications/Utilities/) as shown below:

defaults write com.apple.finder ProhibitConnectTo -bool true;killall Finder

Notice the ‘Connect to Server’ option is now missing and also the hot keys of ‘CMD’ + ‘K’ do not work either:

defaults writes finder server

If you do want to revert back to the default setting, just enter the following command:

defaults write com.apple.finder ProhibitConnectTo -bool false;killall Finder

Disclaimer:

While the author has taken care to provide our readers with accurate information, please use your discretion before acting upon information based on the blog post. Amsys will not compensate you in any way whatsoever if you ever happen to suffer a loss/inconvenience/damage because of/while making use of information in this blog.

This feature has been tested using OS X v10.8.4 which was the latest Mac OS release at the time of writing.

2 Replies to "How to disable the Finder’s ‘Connect to Server’ option"

  • After upgrading my MacBook Pro to from Lion to Mountain Lion, I conant use Hamachi, which is a serious problem as I bought the subscription and configured company network with it. I use also Neorouter and for now it is a working alternative for me under Mountain Lion. The symptoms: Hamachi (V 2.1.0.300) application itself works. The problem appears when I try to connect any way to any other computer. Short portion of data is sent, then the communication totally hangs. Same with ssh I can connect to a server but issuing any command which returns longer result (top, ps -e etc) displays some data and hangs. Then the Mac’s terminal is hanged, I have to close it, when I retry the behavior is same. Also conant open any web service I have in the Hamachi network. It start the communication, transmits a part of data and hangs too, regardless what browser I use. These effects happen only via Hamachi, the other ways for connecting to my servers work good (Neorouter and Mac’s VPN, TunnelBlick (OpenVPN)). This behavior conant be reproduced, however, on each Mac upgraded to Mountain Lion my colleague has a MacBook Air, Hamachi works after Mac OS upgrade (he’s in the same Hamachi network, tried to connect to the same nodes).

Leave a Reply

Your email address will not be published. Required fields are marked *