In addition to the tools you need to configure and start various network services, such as file sharing or FTP, Mac OS X includes tools you can use to monitor and administer your network. Two of these are the Network Utility, which enables you to diagnose your network connections, and NetInfo Manager, which provides comprehensive control over many aspects of a Mac OS X machine. Using the Network Utility to Assess Your NetworkThe Network Utility provides a set of tools you can use to assess the condition of communication across machines on your network as well as a set of tools to enable you to get information about various sites on your network and on the Internet. When you launch Network Utility (Applications/Utilities), you will see a window with eight tabs, one for each service that the application provides (see Figure 25.10). Figure 25.10. Ping is a useful way to test your connection to another machine (in this case, I pinged www.apple.com).
Covering each of these services in detail is beyond the scope of this chapter, but the next couple of examples should be helpful in getting you started. Checking Network Connections with PingTroubleshooting network problems can be difficult because it can be hard to identify where the source of the problem is; for example, with the machine you are using, with the machine you are accessing, with an application, and so on. Ping is a way to check on the fundamental communication between two machines. If the ping is successful, you know that there is a valid communication path between two machines. If it isn't, you know that there is a fundamental problem with the communication between the machines, and this helps you know where to troubleshoot. To ping a machine, perform the following steps:
Watch the results in the lower part of the window. You will see your machine attempt to communicate with the machine whose address you entered. If they are able to successfully communicate, you will see statistics about how fast the pings are taking (see Figure 25.10). If the ping is successful, you know that the communication path between the machines is valid. If not, you know that you have a fundamental connection problem. Tracing a Route with TracerouteSometimes looking at the specific route between two machines can help you identify the source of problems you might be having.
Understanding and Setting PermissionsAccess to items on your Mac OS X machine, whether from the machine directly or over a network, is determined by the access privileges that are set for those items. There are three levels of access privilege that can be set for any item; these are the following:
The owner is the owner of the item. The group is a set of users. By default, Mac OS X includes a number of groups for which various permissions are assigned to different volumes and directories. Many of these default groups will look odd, and some are even nonexistent (you will see Members of group ""). Others includes those users who are neither the owner nor members of a group. For each level of access, there are four access options:
If you open the Info window for an item and expand the Ownership & Privileges area, you will see the current access privileges for the item for the owner, group, and others. For example, Figure 25.12 shows the Privileges information for the volume on which Mac OS X is installed, whereas Figure 25.13 shows similar information for a folder within the logged-in user's Home directory. Figure 25.12. This Info window for the startup Mac OS X volume shows that only the owner and group can modify it.Figure 25.13. This Info window is for the Documents folder within a user's Home directory; its pop-up menus are active and you can use them to set access privileges for the item.There are several things you need to know about the Privileges information shown in the Info window. First, unless you are logged in under the root account, you can't use the pop-up menus to change the Privileges assigned to items on the Mac OS X startup volume above a particular user's Home directory this even includes when you are logged in under the Administrator account. However, when you open the Privileges pane of the Info window for an item on another volume or within a user's Home directory, the pop-up menus become active and you can use them to change the privileges for the item. Second, the groups you see in the Info window are default groups created when you installed Mac OS X. The user accounts that are members of these groups can access the item with the group's privileges. You can't change the members of those groups from the Finder; you have to use the NetInfo Manager application, as you will see in the next section. NOTE Under previous versions of the Mac OS, you configured groups using the File Sharing control panel and the Sharing pane of the Info window. Accomplishing the same tasks under Mac OS X is a bit more complicated. To be able to configure access privileges for most items, you will need to be logged in as an Administrator or you have to authenticate yourself in the Info window. To do so, click the Lock icon and enter an Administrator username and password. To set the access privileges for all items, perform the following steps:
Using NetInfo Manager to Administer Your NetworkThe NetInfo Manager application (Applications/Utilities) can be used to view and change an extensive amount of configuration information for a system. The application presents information based on a selected directory; by default, this is the information for the localhost directory, which is the machine on which Mac OS X is installed. CAUTION Using the NetInfo Manager application is not for the faint of heart. The information it presents and the controls that it provides are quite complicated and can also be quite dangerous to your system. This section can only scratch the surface of this application, and you should be a bit careful if you explore the application on your own. When you open the application, click the Lock icon and enter your Administrator account information to enable changes to be made. You will see a two-paned window with some tools across its top (see Figure 25.14). Figure 25.14. This NetInfo Manager window shows information for the base level of the localhost machine.
In the upper pane, you see a browse window that works similarly to a Finder window in the Columns view. In the center column, you can browse the contents of an item selected in the left column. Similarly, in the far-right column, you can browse the contents of an item selected in the center column. In the lower pane, you see the details for the item you have selected in the upper pane. The specific details you see are related to what you have selected in the upper pane. For example, in Figure 25.15, you see the details for the user account mmiser selected in the upper pane in the lower pane of the window. Figure 25.15. You can use the NetInfo Manager to view and change information about the items you select.When you have selected an item, you can change its information by editing the property and value data in the lower pane of the window. NetInfo Manager is an extremely powerful utility, and you can administer many parts of your system with it. Because of space limitations, I can't cover it in much detail. However, a sample task will show you how it works in general. You can change the members of a group through which access privileges are assigned by changing the members in that group. For example, you can add members to the group admin to change which user accounts have Administrator privileges on your machine.
TIP If the changes you make don't appear to be reflected, restart Mac OS X. This will force the new values to be implemented. NOTE You can make copies of directories so that you can make changes to one and use it without writing over the previous version. This gives you a way to recover in case you mess something up. The users you added to the admin group will have the privileges for this group. If you open the Accounts pane of the System Preferences utility, you will see that the user account you added to the admin group is now designated as an Administrator account. You can change the members of other groups you encounter in the same way. NOTE Of course, it would be a lot faster to use the Accounts pane of the System Preferences utility to edit a user account to make it part of the admin group, but this example serves to show you generally how the NetInfo Manager application works. To change the members of other groups, you have to use the NetInfo Manager application, and you can do so using the same steps as those to change the members of the admin group. Using iChat to Communicate with Others on Your Network
To use iChat for instant messaging even over the Internet, a user must have a .Mac or AOL account. However, a user does not need one of these accounts to communicate via Rendezvous. First, configure iChat to communicate via Rendezvous:
To send a message to a user on your network, carry out the following steps:
The person with whom you communicate can reply to your message. If the recipient does reply, you will see the reply in the window with the person's name as its title (see Figure 25.18). Figure 25.18. Replies you receive to your messages appear in threads in the person's window.
|