
macOS can share files with other people on your network, but leaving Guest access enabled can allow untrusted users to browse shared folders. The safest approach is to turn off guest file sharing, share only specific folders, and grant access to named user accounts with strong passwords.
Quick Answer
To secure file sharing on a Mac without Guest access:
- Open Apple menu > System Settings > General > Sharing.
- Turn on File Sharing, then select the Info button next to it.
- Turn off Allow guests to connect to shared folders.
- Remove unnecessary folders from Shared Folders.
- Under Users, give access only to specific people or accounts.
- Use Read Only access unless someone genuinely needs to create or change files.
- Turn off File Sharing when you no longer need it.
The exact wording or location of some controls can vary slightly by macOS release, but the security principles are the same.
Why Disable Guest Access?
Guest access lets someone connect to shared folders without signing in to a named user account. Although guest users may have limited permissions, anonymous access makes it harder to identify who connected and increases the chance that private files are exposed.
Disabling Guest access helps you:
- Require a recognized username and password.
- Limit access to selected people.
- Track access through individual accounts rather than a shared guest identity.
- Prevent accidental browsing of folders intended only for household or business users.
- Reduce the number of ways an unauthorized device can connect.
Guest access is separate from the Guest User account used at the Mac’s login screen. Turning off guest connections to shared folders does not necessarily disable the login-screen Guest User account. If you also want to prevent local guest logins, review System Settings > Users & Groups separately.
Prepare Before Changing Sharing Settings
Before changing permissions, decide what you need to share and who needs access.
Use a dedicated shared folder
Do not share your entire home folder unless there is a specific reason. Create a folder such as Shared Files in your home folder or use the system Shared folder for files that multiple local users need.
Keep private documents, password exports, tax records, and personal photo libraries outside the shared location unless they must be available to another user.
Confirm the user accounts
Each person who needs access should use an individual account on the Mac. Avoid giving everyone the same administrator credentials. A named standard user account is usually sufficient for accessing files.
If another person does not have an account:
- Open Apple menu > System Settings > Users & Groups.
- Select Add User.
- Create a standard user account with a strong, unique password.
- Give the person those credentials privately.
Do not send passwords in a public group chat or leave them in a shared document.
Warning: Changing permissions can immediately affect who can open, edit, move, or delete files. Save open documents and close apps that are using the folders before making major permission changes.
Turn Off Guest File Sharing
Follow these steps to prevent guest connections to shared folders.
- Open the Apple menu and choose System Settings.
- Select General in the sidebar.
- Choose Sharing.
- If File Sharing is off, turn it on.
- Select the Info button next to File Sharing.
- Review the Shared Folders list and remove any folder that should not be available.
- Turn off Allow guests to connect to shared folders.
- Select Done.
On some macOS versions, the guest control appears in a file-sharing options panel rather than directly in the File Sharing details window. Look for wording that refers to guests connecting to shared folders, or to guest users accessing shared files.
After this change, anyone connecting to the Mac must authenticate with an allowed user account. They will no longer be able to connect anonymously as a guest.
Share Only the Folders You Need
The most secure file-sharing setup uses a small number of narrowly defined shared folders.
- In System Settings, go to General > Sharing.
- Select the Info button next to File Sharing.
- In Shared Folders, review every listed folder.
- Select a folder that should no longer be shared.
- Use the remove button to take it out of the list.
- Add a folder only when another person or device needs access to it.
If you are sharing files between computers, a dedicated folder makes it easier to understand what is exposed. It also reduces the risk of accidentally sharing a parent folder that contains unrelated personal data.
A folder can contain files with their own permissions, so removing unnecessary folders from the sharing list is still the best first step. For complicated permission problems, see this guide to fixing permission denied errors on a shared folder on a Mac.
Give Users the Least Access They Need
After selecting a shared folder, configure its user permissions.
- Open System Settings > General > Sharing.
- Select the Info button next to File Sharing.
- Select a folder under Shared Folders.
- Review the Users list.
- Add only the accounts that need access.
- Choose an access level for each account:
– Read Only allows a user to open and copy files without changing the shared folder.
– Read & Write allows a user to create, edit, move, and delete files.
– Write Only (Drop Box) allows a user to place files in the folder but prevents them from viewing its contents.
– No Access blocks the selected user.
Use Read Only by default. Choose Read & Write only for people who must collaborate in the folder. Remember that write access can allow a user to replace or delete files, not just edit their own documents.
A Write Only (Drop Box) folder can be useful when someone needs to submit files but should not browse files submitted by others. Test this arrangement with a non-administrator account before relying on it for important transfers.
Use Strong Account Security
Disabling Guest access does not protect a shared folder if an authorized account has a weak or reused password.
For every account allowed to connect:
- Use a long, unique password.
- Do not reuse the Mac’s password on other websites.
- Remove accounts that are no longer needed.
- Do not share administrator credentials for routine file access.
- Enable available sign-in protections for the account and Mac.
- Lock the Mac when you leave it unattended.
To remove a former user, open System Settings > Users & Groups, select the account, and choose the appropriate removal option. Review the choices carefully before confirming. macOS may offer to preserve or delete the user’s home folder.
Warning: Deleting a user’s home folder can permanently remove that person’s local files. Back up or transfer needed data before deleting an account.
Limit Where File Sharing Is Available
File sharing is most appropriate on a private, trusted network. Avoid exposing your Mac’s file-sharing service directly to the public internet.
Use these precautions:
- Do not configure router port forwarding for Mac file sharing unless you fully understand the security implications.
- Avoid sharing sensitive files over public Wi-Fi.
- Turn off File Sharing when you are away from your trusted network.
- Keep macOS and your router’s firmware updated.
- Use a trusted local network with a properly secured Wi-Fi password.
- Review sharing settings after connecting to a new network or changing your network equipment.
You can disable file sharing temporarily by opening Apple menu > System Settings > General > Sharing and turning off File Sharing. This does not delete the shared folders or their contents; it simply stops the service.
If you need to access files from another Mac, use named credentials rather than attempting to enable anonymous access. For a broader setup walkthrough, see how to share files between two Macs.
Connect Without Guest Access
The connecting Mac must sign in with an account that you explicitly allowed.
- On the other Mac, open Finder.
- Select Go > Network from the menu bar.
- Select the Mac that is sharing files.
- Choose Connect As.
- Select Registered User rather than Guest.
- Enter the username and password of an account permitted to access the shared folder.
- Select Connect.
- Choose the available shared folder.
If the credentials are rejected, confirm that you are using the account name and password for the Mac hosting the files—not necessarily the credentials of the Mac you are using to connect.
For a shared folder or network-attached storage device that does not appear in Finder, this guide explains how to connect to a shared folder or NAS on a Mac.
Verify That Guest Access Is Really Disabled
After changing the setting, test it from another user account or Mac.
- Connect to the Mac hosting the files.
- Select Connect As.
- Try Guest.
- Confirm that Guest cannot access the shared folders.
- Select Registered User and sign in with an authorized account.
- Confirm that the user sees only the folders and permissions you intended.
Do not test by deleting or editing important files. Use a small test folder containing copies of nonessential documents. Check both permitted and restricted accounts if possible.
Troubleshooting
The Guest option still appears
The Guest option may still appear in the connection window even when guest access is disabled. What matters is whether a guest connection succeeds. Try connecting as Guest and verify that macOS refuses access.
If Guest can still open a shared folder:
- Reopen System Settings > General > Sharing.
- Select the Info button next to File Sharing.
- Confirm that guest connections are disabled.
- Check whether another service or device—not this Mac—is providing the shared folder.
- Turn File Sharing off, wait briefly, and turn it on again.
A permitted user cannot connect
Check the following:
- The account exists on the Mac hosting the files.
- The password is correct.
- The account is listed for the specific shared folder.
- The user is not set to No Access.
- Both Macs are connected to the same network, if local sharing is intended.
- The Mac hosting the files is awake and reachable.
- File Sharing is enabled.
If the password was recently changed, remove any saved credentials from the connecting Mac and try again. Be careful not to delete unrelated saved passwords.
The user can connect but cannot edit files
The user may have Read Only permission. Select the shared folder’s settings and change the user to Read & Write only if editing is necessary.
File-level permissions can also override the folder’s expected behavior. Avoid changing permissions throughout an entire home folder unless you understand the consequences. Start with a dedicated shared folder and test it with a sample file.
A user can see more than expected
Remove parent folders from Shared Folders if they expose unrelated content. Then share a narrower subfolder instead.
Also check whether the user is an administrator or belongs to a group with broader access. A user’s access can come from more than one permission entry, so review both direct user entries and group entries.
File Sharing turns off or stops working
Restart the Mac hosting the files and verify that File Sharing is still enabled. Check the network connection and make sure the Mac is not asleep.
If the problem began after a network change, confirm that both devices are on the intended network. A firewall, VPN, router setting, or security tool may also interfere with local connections.
Screen sharing is confused with file sharing
File Sharing lets another device access selected folders. Screen Sharing lets someone view or control the Mac’s desktop. They are separate services with separate security considerations. If you do not need remote desktop access, leave Screen Sharing turned off. You can review the difference in this guide to sharing and controlling another Mac screen.
Frequently Asked Questions
Does disabling Guest access remove the Guest User account?
No. The file-sharing guest setting controls connections to shared folders. The login-screen Guest User account is a separate setting under Users & Groups.
Can I share files without creating a user account?
Not securely with named access. If Guest access is disabled, a connecting person needs an account that is permitted to use the shared folder. Creating a standard account is safer than sharing an administrator account.
Is Read Only completely safe?
Read Only prevents normal editing and deletion through the shared connection, but it does not protect against every risk. A person who can view a file may be able to copy it. Share only information that the user is allowed to see.
Should I turn off File Sharing when I am finished?
Yes, if you use it only occasionally. Turning off File Sharing stops network access while leaving the files on the Mac. Turn it back on when needed.
Can I use file sharing over the internet?
macOS file sharing is best limited to a trusted local network. Do not expose it directly to the internet through router port forwarding unless you have a carefully designed, secured remote-access setup.
Final Thoughts
The simplest secure setup is to disable Guest connections, share only a dedicated folder, use individual standard accounts, and assign the lowest permission each person needs.