Tuesday, January 13, 2009

Exporting the shared file systems

After you have added entries to your /etc/exports file, you can actually export the directories listed using the exportfs command. If you reboot your computer, the exportfs command is run automatically to export your directories. However, if you want to export them immediately, you can do so by running exportfs from the command line (as root). Here’s an example of the exportfs command:
# /usr/sbin/exportfs −a −v
exporting :/pub
exporting :/home
The −a option indicates that all directories listed in /etc/exports should be exported. The −v option says to print verbose output. In this example, the /pub and /home directories from the local server are now immediately available for mounting by client computers.

No comments:

Post a Comment