Accessing File Services
One of the strengths of Mac OS X is its ability to easily access networked file services provided by a variety of different operating systems. In addition to accessing Mac OS X Server computers, Mac OS X is able to access files stored on Windows and UNIX file servers and allow applications to work with the files on the servers as easily as working with files stored on local volumes. This allows Mac OS X computers to be integrated into mixed-computer networks.

Using Connect to Server
The Finder is the primary application used to access files, including those stored on file servers. To connect to these servers, begin by choosing Go > Connect to Server (Command-K).

- Apple Filing Protocol (AFP)
- Server Message Block (SMB)
- WebDAV
- Network File System (NFS)
- File Transfer Protocol (FTP)
The following sections explain how to connect to the various types of servers. Since few readers have access to a computer with all types of servers, you are not expected to actually perform these step-by-step instructions. Simply read along to understand the procedures.
Apple Filing Protocol (AFP)
The file sharing protocol most commonly used in Mac OS X is Apple Filing Protocol (AFP). This protocol allows you to mount volumes from computers running Mac OS 9 or earlier, as well as computers running Mac OS X.These steps demonstrate the process of using Connect to Server to mount an AFP volume.
Server Message Block (SMB)
Another common file sharing protocol is Server Message Block (SMB). Computers running Microsoft Windows use this protocol to share files. Use it on Mac OS X to access files shared by computers running Windows.These steps demonstrate the process of using Connect to Server to mount an SMB volume.
NOTENew in Mac OS X 10.4 is the ability to authenticate to Windows servers using NT LAN Manager version 2 (NTLMv2). NTLMv2 provides the most secure way of authenticating for Windows computers and is the default authentication method on Windows Server 2003. Support for NTLMv2 from Mac OS X 10.4 means that Mac clients can connect to Windows servers without requiring a Windows administrator to enable a less secure authentication method for Mac clients.
WebDAV
WebDAV is an extension of the Hypertext Transfer Protocol (HTTP), typically used for editing web content. (This is the same protocol you use when you access pages on the web with a browser.) With WebDAV, however, you mount the website as a volume, and you can add and modify files as well as read them.These steps demonstrate the process of using Connect to Server to mount a WebDAV volume.
NOTENew in Mac OS X 10.4 is the ability to connect to WebDAV servers using the secure HTTPS protocol. To connect to a secure WebDAV server, specify the address using the prefix https, such as: https://secureserver.pretendco.com. You can use Get Info to see if a volume is mounted via HTTPS by looking at the server URL under the General disclosure triangle.
Network File System (NFS)
NFS is the file sharing protocol used by most UNIX systems. NFS servers are not considered as secure as other file servers, such as AFP, because NFS authorizes access based on the computer's IP address, rather than prompting a user for a name and password. Because it is easy for a user to change a computer's IP address, it is extremely easy for a computer to pose as an authorized computer to gain access to the NFS server.These steps demonstrate the process of using Connect to Server to mount an NFS volume.
1. | Choose Go > Connect to Server (Command-K).The Connect to Server window appears. |
2. | In the Server Address field, enternfs:// followed by the server's IP address, DNS name, or local hostname, optionally followed by a trailing slash. |
3. | Click Connect.The shared volume appears in the Sidebar at the left of the Finder window. |
File Transfer Protocol (FTP)
FTP is important primarily because it is widely used on the Internet for transferring files. Most UNIX-like operating systems provide FTP services, and FTP clients are available for nearly every computer operating system; Mac OS X is no exception in either regard.These steps demonstrate the process of using Connect to Server to mount an FTP volume.
NOTEIn Mac OS X, you can download files after mounting an FTP volume using Connect to Server, but you cannot upload files over FTP using the Finder. Uploading files to an FTP server can be accomplished only with an FTP client such as Fetch (www.fetchsoftworks.com) or Transmit (www.panic.com).
Dealing with File Sharing Protocol Issues
Usually, the protocol you need to use is dictated by the server to which you are connecting. Even though you may not have a choice, you should be aware of issues that can arise when using the different protocols.
- Files with resource forks
As explained in Lesson 4, "File Systems," Mac OS X files can have a resource fork in addition to the traditional data fork. Just as nonApple file systems such as UFS and FAT don't support files with resource forks, file sharing protocols other than AFP do not either. To compensate, Mac OS X will send the resource fork out as a separate file with a prefix of period and underscore (for example, ._TestFile.pdf), just as it does when writing to non-Apple file systems. Because Mac OS X handles the conversion between resource forks and ._ files automatically, you will not see the files in the Finder. However, users on other operating systems such as Windows will see two separate files. - Windows servers
To provide file sharing for Macintosh clients, some administrators have configured Services for Macintosh (SFM) on their Windows NT servers to provide AFP access. Unfortunately, SFM does not provide full AFP 3.1 support. In addition to the problems managing resource forks, SFM is also limited to 65,000 files on a volume. Whenever possible, use a server that fully supports AFP 3.1, such as Mac OS X Server. For Windows servers, you can use third-party AFP servers such as Group Logic's ExtremeZ-IP (www.grouplogic.com).