672 Part V . Running Servers 2. Start

672 Part V . Running Servers 2. Start the autofs service by typing the following as root user: # service autofs start 3. Set up the autofs service to restart every time you boot your system: # chkconfig autofs on Believe it or not, that s all you have to do. If you have a network connection to the NFS servers from which you want to share directories, try to access a shared NFS directory. For example, if you know that the /usr/local/share directory is being shared from the computer on your network named shuttle, you could do the following: $ cd /net/shuttle If that computer has any shared directories that are available to you, you can successfully change to that directory. You also could type the following: $ ls usr You should be able to see that the usr directory is part of the path to a shared directory. If there were shared directories from other top-level directories (such as /var or /tmp), you would see those as well. Of course, seeing any of those directories depends on how security is set up on the server. Try going straight to the shared directory as well. For example: $ cd /net/shuttle/usr/local/share $ ls info man music television At this point, the ls should reveal the contents of the /usr/local/share directory on the computer named shuttle. What you can do with that content depends on how that it was configured for sharing by the server. Unmounting NFS File Systems After an NFS file system is mounted, unmounting it is simple. You use the umount command with either the local mount point or the remote file system name. For example, here are two ways you could unmount maple:/tmp from the local directory /mnt/maple. # umount maple:/tmp # umount /mnt/maple
Visit our web design programs services for an affordable and reliable webhost to suit all your needs.

Leave a Reply