从Mac OS X(Mac OS X)与Windows计算机和设备共享文件夹比以前容易得多。由于OS X对(OS X)Microsoft 服务器消息块 (SMB) 协议(Microsoft Server Message Block (SMB) Protocol)的内置支持,只需在系统偏好设置(System Preferences)中进行一些调整,就可以对Windows计算机进行读/写访问。完成本教程中的步骤后,您的 Windows 7 和Windows 8计算机应该能够在本地网络上看到您的Mac 。您将能够设置多个共享文件夹,每个文件夹具有不同的读/写访问权限。让我们看看它是如何完成的。
注意:(NOTE:)在启用共享之前,请仔细检查您的Mac是否与您的(Mac)Windows计算机和设备属于同一工作组。本指南将为您提供帮助:如何在Mac OS X中更改(Mac OS X)工作组(Workgroup)以轻松联网(Easy Networking)。此外,如果您想了解有关用于与Windows计算机共享项目的协议的更多信息,请阅读此Wikipedia 条目(Wikipedia entry):Microsoft 服务器消息块 (SMB) 协议(Microsoft Server Message Block (SMB) Protocol)。
设置OS X以与(OS X)Windows 7共享
首先在系统偏好设置(System Preferences)中打开共享(Sharing)窗格。您可以在Internet & Wireless部分找到它。
在共享窗格中,选中(Sharing)文件共享(File Sharing)旁边的框。如果您还想启用DVD 或 CD 共享(DVD or CD sharing),也请选中此服务的复选框。
激活并选择文件共享(File Sharing)后, OS X会显示您Mac的(Mac)IP 地址(IP address)。您可以在下面的屏幕截图中看到它突出显示。接下来(Next),单击选项(Options)。
在“选项”窗格中,选中(Options)“使用 SMB (Windows) 共享文件和文件夹”("Share files and folders using SMB (Windows)")和“使用 AFP 共享文件和文件夹("Share files and folders using AFP")”旁边的框。
您还需要选择启用共享的用户帐户。(user account)从Windows连接到Mac的共享文件夹时,您将需要使用这些用户帐户。(user account)如果未为用户帐户(user account)启用共享,您将无法使用其凭据从Windows连接到(Windows)Mac的共享文件夹。
单击完成(Done),您将返回共享(Sharing)窗格。
注意:(NOTE:)此时,OS X可能会要求您输入密码,以启用文件共享。这样做,如果发生这种情况。
单击'+'按钮添加共享文件夹(Shared Folder)。
Finder已打开。浏览(Browse)到您要与Windows计算机和设备共享的文件夹,然后单击添加(Add)。
添加共享文件夹(Shared Folder)后,您可以设置读/写权限。转到“用户(Users)”部分,然后在右栏中选择要分配给每个列出的用户帐户的权限。您可以选择读写、只读、只写(Read & Write, Read Only, Write Only)或无访问权限(No Access)。
注意:最简单的方法是简单地允许对(NOTE:)Everyone进行读/写访问。但是,这应该只在受信任的网络上进行。
使用此过程,您可以添加多个文件夹,每个文件夹具有不同的读/写权限。例如,如果您想设置只写下(Write Only) 拉框(drop box)(其中多个用户可以将作业或文档提交到单个文件夹中,但其他用户无法阅读它们)或只读(Read Only)文件夹以供参考,这将非常有用。
完成添加共享文件夹并设置其权限后,关闭共享(Sharing)窗格和系统偏好设置(System Preferences)。
如何从Windows 7或 Windows 8访问Mac(Your Mac)的共享(Shared) 文件夹(Folders)
在您的Mac上完成上述步骤后,您的 Windows 7 和Windows 8计算机应该会在Windows 资源管理器(Windows Explorer)或文件资源管理器中选择(File Explorer)网络(Network)下的共享文件夹。
让我们看看如何从Windows 8访问它们。对于Windows 7,该过程是相同的。只有Windows Explorer的外观有点不同。
打开文件资源管理器(File Explorer),然后单击或点击网络(Network)。在那里,您将看到网络上的其他计算机,包括您的Mac(如果它已打开)。
如果您看不到Mac,您很可能忘记将它添加到与您的Windows计算机相同的工作组中。查看本教程以获取帮助:如何在Mac OS X中更改(Mac OS X)工作组(Workgroup)以轻松联网(Easy Networking)。
双击或点击Mac。您被要求输入在网络上共享文件和文件夹的用户帐户的凭据。(user account)在第一个文本框中(text box),首先键入Mac的名称,然后是“”,然后是Mac上现有用户帐户(user account)的名称。请注意(Notice)Domain条目如何更改为Mac的名称。然后,输入该用户帐户的密码,然后单击(account and click)或点击OK。
注意:(NOTE:)如果您不先键入Mac的计算机名称(computer name),您将无法访问其共享文件夹。此外,如果您不想总是输入用户帐户和密码(user account and password),可以选中“记住我的凭据”("Remember my credentials")框。
然后,将显示Mac的共享文件夹。
将Mac(Mac)的共享文件夹(Shared Folder)映射为网络驱动器(Network Drive)
如果您无法让Mac出现在网上(Network)邻居中,您需要将其中一个文件夹映射为网络驱动器(network drive)。有关映射网络(mapping network)驱动器的完整说明,请参阅我们之前的教程:如何在Windows 7中(Windows 7)映射网络驱动器(Map Network Drives)。对于文件夹名称(folder name),使用您的Mac的IP 地址(IP address)加上共享文件夹的名称(即“\192.168.1.6shared”)。如果您在Mac上配置的(Mac)用户帐户(user account)与Windows 登录(Windows login)凭据不同,则必须选中“使用不同凭据连接”("Connect using different credentials").
当您单击完成(Finish)时,系统会要求您输入用户名和密码(username and password)。输入您在上述步骤中设置的用户的详细信息。请记住(Remember)先输入Mac的计算机名称(computer name),然后输入“”,然后输入用户帐户(user account)。
结论
如您所见,与Windows 7和Windows 8共享(Windows 8)Mac OS X文件夹几乎是一种“开箱即用”的功能。您所要做的就是打开Windows设备的大门并选择您要共享的文件夹以及授予网络用户的权限。当然,下一步是设置您的Windows计算机,以便可以从您的Mac访问它们。有关在Mac 和 Windows(Mac and Windows)之间共享文件夹和设备的完整说明,请阅读下面推荐的文章。你会发现它们很有用。
How to Share Folders from Mac OS X with Windows 7 & Windows 8 PCs
Sharing folders from Mac OS X with Windowѕ computers and devices, is a lot easier than it uѕed to be. Thanks to OS X's built-in support for the Microsoft Server Message Block (SMB) Protocol, allowing read/write access to Windows computers can be done with just a few tweaks in System Preferences. After completing the steps in this tutorial, your Windows 7 and Windows 8 computers should be able to see your Mac on the local network. You'll be able to setup multiple shared folders, each with different read/write access. Let's see how it is done.
NOTE: Before you enable sharing, double check that your Mac is part of the same workgroup as your Windows computers and devices. This guide will help you out: How to Change the Workgroup in Mac OS X for Easy Networking. Also, if you want to know more about the protocol used to share items with Windows computers, read this Wikipedia entry: Microsoft Server Message Block (SMB) Protocol.
Setting Up OS X to Share with Windows 7
Begin by opening up the Sharing pane in System Preferences. You can find it in the Internet & Wireless section.
In the Sharing pane, check the box next to File Sharing. If you also want to enable also DVD or CD sharing, check the box for this service too.
When File Sharing activated and selected, OS X shows the IP address for your Mac. You can see it highlighted in the screenshot below. Next, click Options.
In the Options pane, check the box next to "Share files and folders using SMB (Windows)" and "Share files and folders using AFP".
You'll also want to select which user accounts will have sharing enabled. You will need to use these user accounts when connecting from Windows to your Mac's shared folders. If sharing is not enabled for a user account you won't be able to use its credentials to connect to the Mac's shared folders from Windows.
Click Done and you are back to the Sharing pane.
NOTE: At this point, OS X might ask you to enter your password, in order to enable file sharing. Do so, if that happens.
Click the '+' button to add a Shared Folder.
The Finder is opened. Browse to the folder you'd like to share with Windows computers and devices and click Add.
Once you have a Shared Folder added, you can set the read/write permissions. Go to the Users section and, in the right column, select the permissions you want to be assigned to each of the listed user accounts. You can choose Read & Write, Read Only, Write Only or No Access.
NOTE: The easiest route is to simply allow read/write access to Everyone. However, this should be done only on trusted networks.
Using this procedure, you can add multiple folders, each with different read/write permissions. This is useful if you'd like to set up a Write Only drop box (where multiple users can turn in assignments or documents into a single folder but other users cannot read them) or a Read Only folder for reference, for example.
When you are done adding shared folders and setting up their permissions, close the Sharing pane and System Preferences.
How to Access Your Mac's Shared Folders from Windows 7 or Windows 8
Once you've completed the above steps on your Mac, your Windows 7 and Windows 8 computers should pick up the shared folders under Network in Windows Explorer or File Explorer.
Let's see how accessing them works from Windows 8. For Windows 7 the procedure is identical. Only the looks of Windows Explorer are a bit different.
Open File Explorer and click or tap Network. There you will see the other computers on your network, including your Mac (if it is turned on).
If you can't see the Mac, chances are you forgot to add it to the same workgroup as your Windows computers. Check this tutorial for help: How to Change the Workgroup in Mac OS X for Easy Networking.
Double click or tap the Mac. You are asked to enter the credentials of the user account sharing files and folders on the network. In the first text box, first type the name of the Mac, followed by "" and then the name of the user account existing on the Mac. Notice how the Domain entry changes to the name of the Mac. Then, enter the password that user account and click or tap OK.
NOTE: If you don't type the Mac's computer name first, you won't be able to access its shared folders. Also, you can check the "Remember my credentials" box, if you don't want to always enter the user account and password.
Then, the Mac's shared folders are displayed.
Mapping a Mac's Shared Folder as a Network Drive
If you are having trouble getting the Mac to show up in Network places, you'll need to map one of the folders as a network drive. For full instructions on mapping network drives, see our previous tutorial: How to Map Network Drives in Windows 7. For the folder name, use your Mac's IP address plus the name of the shared folder (i.e. "\192.168.1.6shared"). If the user account you configured on your Mac is different from your Windows login credentials, you'll have to check "Connect using different credentials".
When you click Finish, you'll be asked to enter your username and password. Enter the details for the user you set up in the steps above. Remember to enter the Mac's computer name first, then "", then the user account.
Conclusion
As you can see, sharing Mac OS X folders with Windows 7 and Windows 8 is pretty much an "out-of-the-box" feature. All you have to do is open the door to Windows devices and choose which folders you'd like to share and which permissions to grant network users. The next step, of course, is to set up your Windows computers so that they can be accessed from your Mac. For complete instructions on sharing folders and devices between the Mac and Windows, read the articles recommended below. You will find them useful.