Mac 101: File sharing
Summary
Learn about File Sharing in Mac OS X v10.5 and later in this article. File sharing allows your Mac to share files and folders with other computers on your network.
In this article, you can learn to:
- Select folders to share
- Configure the user and group accounts with appropriate access privileges
- Choose the appropriate network protocol to communicate with the kind of computer that's accessing your shared files
- Join a Microsoft Windows workgroup
Notes
- Mac OS X v10.5's firewall, firewalls on other computers, or network routers may override your file sharing settings. Please see this article for details on the Mac OS X 10.5 firewall. Refer to your vendor's documentation about firewalls for third-party computers or routers.
- To enable and configure file sharing you will need to know the name and password of an administrator account on your Mac.
- Before you begin, you might want to create all the user and group accounts you will need in Accounts preferences. See this article for details.
- You can set up your Mac to allow specific user and group accounts access to certain folders with appropriate access privileges.
- You can share files using Apple Filing Protocol (AFP), File Transfer Protocol (FTP) or Server Message Block (SMB) protocol.
- File Sharing on Mac OS X is intended for up to 10 simultaneously-connected clients. If you need to connect more that 10 users at one time, you should upgrade to the Unlimited-Client version of Mac OS X Server (http://www.apple.com/server/).
Products Affected
Mac OS X 10.5
Open Sharing preferences
- Log in with an administrator user account.
- From the Apple menu, choose System Preferences.
- From the View menu, choose Sharing.
Select folders to share
Click the + (plus) icon below the "Shared Folders:" field. A sheet appears where you can navigate to the folder you wish to share.
In the example below, the folders named "John's Public Folder" and "Shared" (/Users/Shared) have been selected for sharing.

Repeat this process for all folders you wish to share.
Note: You can also directly select a folder in the Finder to share. Select the folder, choose Get Info from the File menu, and enable "Shared Folder" to share it (or deselect "Shared Folder" to stop sharing the folder).

Tip: When you open a shared folder, a "Shared Folder" banner appears in its Finder window, as well as any subfolder windows.

Configure the user and group accounts with appropriate access privileges
- In Sharing preferences, select the folder that's being shared.
- To add to the default user accounts and groups that were selected when you shared the folder, click the + (plus) icon below the "Users:" field.
- In the sheet that appears, select an existing user account or group (user accounts can be created in Accounts preferences, in System Preferences).
Tip: You can click "New Person" to create a new Sharing Only user account or a user in your Address Book (also a "Sharing Only" user account). Enter a new password for the "Sharing Only" account when prompted.
- The default privilege for a user account or group you add is "Read Only". If you want to change this, from the "Read Only" pop-up menu choose one of the following privilege options:
- Read & Write - The user can read, copy, edit and delete the contents of the folder.
- Read Only - The user can only read and copy (to another location) the contents of the folder.
- Write Only (Drop Box) - The user can only copy content into the folder. The user can not see the contents of the drop box folder.
Note: A "Write Only" user can overwrite items in the drop box folder, if what they drop into it has the same name as an item already in the drop box folder.
- No Access (groups only) = User accounts in this group will have no access to the folder. However if their user account is added, the privileges assigned to the user account will override their group restrictions.
- Repeat this process for each folder being shared.

You can also manage the user or group access of a shared folder via the Finder; select the folder and choose Get Info from the File menu.
Tip: If you need to assign the shared folder user or group account privileges to items contained in the shared folder, select "Apply to enclosed items" from the Get Info inspector action item menu. A confirmation sheet will appear, click OK to complete the process.

Choose the appropriate network protocol to communicate with the kind of computer that's accessing your shared files
Follow these steps to select the appropriate protocols for the kind of computer that will log onto your Mac:
- In Sharing preferences, click the "Options..." button.
- Select "Share files and folders using AFP" to enable the Apple Filing Protocol. Use this protocol to file share with other Macs.
- Select "Share files and folders using FTP" to enable the File Transfer Protocol. Use this protocol to file share with UNIX and LINUX systems.
- Select "Share files and folders using SMB" to enable the Server Message Block protocol and check the user accounts to enable for SMB. Use this protocol to file share with Microsoft Windows-based PCs.
Note: You will have to enter the user's password for a user account that you enable for SMB.
- Once you have selected the desired networking protocols, click "Done" to complete the process.

Joining a Microsoft Windows workgroup
To help your PCs that shared files appear in the "Shared" section of your Mac OS X Finder sidebar, and for your PC(s) to locate your Mac that is sharing folders using SMB protocol on the network, you should have your Mac join the appropriate Windows workgroup.
Check with your Windows administrator to learn which Windows Workgroup you need to join. Default Windows workgroups are "MSHOME" and "WORKGROUP".
- Open Network preferences, in System Preferences, and ensure that the padlock in the lower left is unlocked. If locked, click on it and, when prompted, enter an administrator name and password. Click OK to continue.
- Type "Workgroup" in the System Preferences search field and press Return. (Or, click "Network", select an interface, then click "Advanced", then "WINS".)
- Enter a name for your Mac in the "NetBIOS Name:" field.
- Enter the appropriate Workgroup you want to join join in the "Workgroup:" field.
- Click OK.
- Click "Apply" to complete the process. It might take a few minutes for the PC(s) to appear in the "Shared" section of your Finder sidebar, and for PCs to see the Mac in this workgroup.

If your Mac is in an office environment, you might need to enter in one or more IP addresses of your office "WINS" servers. Check with your Windows administrator to learn the IP addresses of your office "WINS" servers. To enter the IP address of your "WINS" servers, follow these steps:
- Open Network preferences, in System Preferences, and ensure that the padlock in the lower left is unlocked. If locked, click on it and, when prompted, enter an administrator name and password. Click OK to continue.
- Type "WINS" in the System Preferences search field and press Return.
- Click the + (plus) icon below the "WINS Servers:" field.
- Enter one IP address for one of your "WINS" servers.
- Repeat steps 3 and 4 for each IP address of your "WINS" servers.
- Click OK.
- Click "Apply" to complete the process.
Additional Information
- Mac OS X leverages the CIFS Browser Protocol to enable PCs to appear in the "SHARED" section of the Finder windows sidebar and for Macs to appear in Windows workgroups. Ports 137, 138, and 139 should not be blocked on your PC firewall.
- A "Sharing Only" type of user account is one that will not have a home folder. It is not a local user account. You will not be able to use your Mac with this kind of account. It is only used to log onto your Mac for file sharing from another computer.
- See this web page for more information about Bonjour technology.
- See this Microsoft support article for more information about the CIFS Browser Protocol, and this Microsoft support article for information about troubleshooting issues with CIFS Browser Protocol.
Important: Mention of third-party websites and products is for informational purposes only and constitutes neither an endorsement nor a recommendation. Apple assumes no responsibility with regard to the selection, performance or use of information or products found at third-party websites. Apple provides this only as a convenience to our users. Apple has not tested the information found on these sites and makes no representations regarding its accuracy or reliability. There are risks inherent in the use of any information or products found on the Internet, and Apple assumes no responsibility in this regard. Please understand that a third-party site is independent from Apple and that Apple has no control over the content on that website. Please contact the vendor for additional information.