Turn off File Sharing on Mac when you do not need it

Turn off File Sharing when no other computer needs network access to folders on your Mac. If you do use it, keep the service enabled but restrict the shared folders, users, guest access, and permissions to what is actually required.

Current macOS file sharing uses SMB. Turning the service on makes the selected folders available over the network to accounts and guests that you authorize.

macOS 13 and later

  1. Choose Apple menu > System Settings.
  2. Click General > Sharing.
  3. Below Content & Media, turn off File Sharing.
macOS Sharing settings with File Sharing turned off

macOS 10.11 through 12

  1. Choose Apple menu > System Preferences > Sharing.
  2. Deselect File Sharing.
Legacy Sharing preferences with File Sharing deselected

If you need File Sharing

Click the information button beside File Sharing and review:

  • every entry under Shared Folders;
  • each user’s access level, including Everyone and guest access;
  • whether administrators should have full-disk access;
  • SMB options and Windows File Sharing accounts; and
  • whether a folder can require encrypted SMB connections in its advanced options.

Apple recommends deselecting Windows File Sharing accounts before turning SMB sharing off because their stored password can otherwise remain active.

Security and functional limits

  • The macOS application firewall does not replace File Sharing permissions, and turning File Sharing off does not configure the firewall.
  • This setting does not turn off Screen Sharing, Remote Login, AirDrop, iCloud collaboration, Media Sharing, or other sharing services.
  • Turning off local login for the Guest User does not necessarily turn off guest access to shared folders; check both settings.

Primary sources


You might also be interested in

Check your security settings

SimpleumCheck Screenshot

SimpleumCheck checks the security settings on your Mac in three stages and gives you recommendations on how you can improve your security even further.

For Free

Protect and encrypt your data

SimpleumSafe Screenshot


Protect your data with SimpleumSafe App for Mac, iPhone and iPad. Don’t compromise when it comes to protecting your data.


Other security setting to check


PLEASE READ THE FOLLOWING TIP AND DISCLAIMER!

Keep in mind: not every security and privacy setting is suitable for everyone. Enhancing the security can lead in losing functionality and/or comfort.
Before making changes, please backup your Mac! Do not make too many change at once. After changing your Mac, check if your normal usage of your Mac has changed in a way which fits to you. Are your really willing to loose some functionality and/or comfort?
Most important is, that you learn and understand what are the advantages and disadvantages of the security settings and that you are aware about the capabilities and risks of your Mac configuration.

To skip this result message from your next security scan, you can deactivate this check. FAQ: How to deactivate a check.

CHECK RESULTS BY SIMPLEUMCHECK DO NOT COVER ALL ASPECTS OF POSSIBLE SECURITY CHECKS OR MAYBE INCORRECT OR INCOMPLETE. THE RESULTS ARE ONLY CLUES FOR RECOMMENDATIONS TO IMPROVE SECURITY AND PRIVACY ON THE MAC.

The use of SimpleumCheck, the checks and FAQ articles are provided under the SimpleumCheck End User License Agreement (EULA).