You may be familiar with the Go > Go to Folder menu item in the Finder. You can use this to go directly to any folder in your Mac's file system. But on some Macs, you may not want users to be able to access that menu item. For example, Macs in public places - such as schools or libraries - or Macs that your kids use. OS X Daily recently posted a method for hiding this menu item. Run the following command in Terminal:
defaults write com.apple.finder ProhibitGoToFolder -bool true ; killall FinderNot only will the menu item be gone, but the Command-Shift-G shortcut that brings up the Go to Folder dialog will no longer work.
defaults write com.apple.finder ProhibitGoToFolder -bool false ; killall FinderNote that this command does not prevent access to the user's Library folder; if you press the Option key while displaying the Go menu, you'll see Library show up as an option, between Home and Computer.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20120905003225413