Mac OS X Leopard supports a number of different protocols for accessing shared files. The primary or native protocol for Mac file sharing is Apple Filing Protocol (AFP). This protocol has been developed and refined by Apple over many years.
Like SMB, HTTP and other common protocols, it is built on the same TCP/IP protocol suite that powers the Internet. Although some third-party software allows Windows computers to communicate using AFP, it is generally considered a Mac-specific protocol.
In addition to AFP, Macs come with the ability to access shared files on Windows PCs and servers using SMB (as described above), thanks to Apple’s implementation of Samba, an open-source version of SMB for Unix and Linux operating systems.
With the exceptions noted above in terms of specifying a NetBIOS name and workgroup, there is nothing special that needs to be done to enable Macs to access files and folders being shared by Windows. In fact, Macs will typically be able to see Windows PCs and servers out of the box.
If you want to share files on your Mac with Windows computers via SMB, however, there are a few extra steps to take. First, you will need to enable file sharing using the Sharing pane in System Preferences (as simple as checking the File Sharing checkbox in the list of sharing options).
Then you will need to explicitly choose to share those files using SMB by clicking the Options button. You can choose to share files using AFP, FTP (File Transfer Protocol) and SMB.
If you choose SMB, you must also specify which users will be allowed to connect to the Mac remotely. This is because AFP and SMB differ in the encryption technologies used to store and transmit user password information over a network.
SMB supports a range of encryption mechanisms, some of which are specific to earlier versions of Windows and are less secure than the mechanisms used with AFP or with Windows XP and Vista. Thus, you must choose to allow each user’s password to be stored in the appropriate formats when you enable SMB support.
Note: Leopard also supports sharing files using FTP, a platform-agnostic protocol that can be accessed using any computing platform and an FTP client. However, FTP does not encrypt user password data or files as they are transferred.
In addition to sharing folders and files with Windows computers, Leopard can provide shared access to printers. The process of enabling printer sharing for Mac users is fairly simple.
Enable printer sharing as a whole by selecting the Printer Sharing checkbox in the Sharing pane of System Preferences. Then open the Print & Fax pane in System Preferences, select the printer that you want to share in the Printers list and select the “Share this printer” checkbox.
The only other thing you need to do to share a printer with Windows computers is to be sure that SMB file sharing is enabled (as outlined above), and the printer will be shared using SMB.
When Leopard and Windows coexist on a single Mac
There are now a range of options for running Windows and Windows applications on a Mac. The primary choices are Apple’s dual-boot option Boot Camp, which comes free with Leopard and works with any Intel Mac, and the virtualization tools Parallels Desktop for Mac ($79.99) and VMware Fusion ($79.99).
Sun’s open-source VirtualBox is a free virtualization option that is beginning to gain popularity despite entering the game well behind the commercial options and offering more limited and less polished features — for instance, VirtualBox lacks DirectX support for Windows.
See Macworld’s video tour of VirtualBox
While the following tips aren’t full-scale guides to any of these products, they do address some common pitfalls.
Ensuring access to Mac and Windows data
Whether you’re using Boot Camp or a virtualization product, you’ll want to make sure that you have easy access to all your files and folders in both Windows and Mac OS X. But because Mac OS X and Windows rely on different types of formatting for hard drives, that’s not always as simple as it sounds.
If you’re using Boot Camp, your hard drive will be partitioned, and one partition will be formatted for access by Windows. You’ll be offered two formatting options for the Windows partition: FAT32 and NTFS. Mac OS X can read and write to drives formatted using FAT32, so if you use FAT32, you’ll be able to access any files and folders on your Windows partition when your computer is booted into Leopard.
However, Mac OS X does not include full support for NTFS. As a result, if you opt for NTFS, you’ll have read-only access to your files on your Windows partition when you boot into Leopard, which can be problematic if you need to make changes to a document or want to add, move or delete files.
The simplest solution is to format your Windows partition as FAT32. But it’s an older format that does not offer support for file and folder permissions or encryption, which means you have fewer options for securing your data. And with FAT32, you are more likely to encounter problems such as hard drive fragmentation, which can impact overall performance.
Finally, NTFS is a journaled file system, which provides greater error-checking options for the hard drive and reduces the risk of data loss if the computer is unexpectedly restarted.
If you want the advantages of NTFS and full access to your Windows files from within Leopard, you can install an NTFS driver for Mac OS X. There are two main options: MacFuse (a free port of the open-source Fuse tool that allows Linux systems to access NTFS drives) and Paragon NTFS for Mac OS X ($39.95). Both are generally reliable solutions, though Paragon is more user-friendly, particularly for new or nontechnical Mac users.
The issues of accessing your Mac OS X partition from Windows are very similar. Windows does not have any built-in capabilities for reading the most commonly used Mac hard drive format types, which are variations on Apple’s HFS+ format (also called Mac OS Extended).
In much the same way that MacFuse and Paragon NTFS allow full access to NTFS-formatted Windows partitions, Mediafour’s MacDrive ($49.95) allows Windows to access Mac-formatted drives and partitions, including the partition containing Leopard.
When using virtualization
What if you’re using a virtualization tool instead of Boot Camp? Unlike Boot Camp’s dual-boot approach, which requires restarting your computer to switch between operating system partitions, virtualization tools run Windows alongside Leopard on a single drive. Even so, accessing files and folders created in the other operating system can be tricky.
The primary reason is that by default, virtualization tools rely on a hard drive image to contain your Windows installation and files. The image appears to Windows like a normal hard drive, but on your Mac it appears as a single image file. This can make it difficult to directly access those files from Leopard.
Fortunately, the virtualization tools let you configure shared folders so that a folder on your Mac’s hard drive is seen as a mapped drive in Windows. This isn’t always the most convenient solution, but it is effective, particularly if you enable your entire Mac OS X home directory (or any commonly used folder) as a shared folder.
Note, however, that sharing your entire home directory with Windows has security implications, as detailed on the next page.
Both Parallels Desktop and VMware Fusion also let you drag and drop files to copy them between the Windows hard drive image and locations on the Mac’s hard drive.
The most recent versions of Parallels Desktop and VMware Fusion include a couple of helpful features beyond shared folders. Both tools offer the ability to use a Boot Camp partition instead of a hard drive image file, which can then be accessed as described above. This means you can easily make use of virtualization with an existing Windows installation that was made using Boot Camp.
In the latest version of Parallels, you can launch a file browser from Leopard that lets you navigate and manage the contents of a virtual machine’s hard drive image even if the virtual machine is shut down.
Finally, both tools support a windowless mode (known as Coherence in Parallels and Unity in VMware) in which Windows applications are displayed in the Dock alongside Mac applications. This mode also allows access to files from Mac or Windows applications regardless of whether those files reside within the virtual machine’s disk image file or within the Mac’s file system.