DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Using DFS commands and files

Sharing a resource automatically

To share a set of resources automatically whenever your system enters init state 3, use the /etc/dfs/dfstab file. For example, if you want a directory to be available to clients on a regular basis, and you can anticipate few occasions when you would need to make it unavailable, you can enter a share command for that directory into the dfstab file. Then, whenever you take the system to init state 3, the directory becomes available to clients automatically. For more information on system states, see ``About system states''.

Each line of the file consists of the share command line needed to share a particular resource; the share command you enter in the file has the same syntax as the share command you enter at the command line. (See the description of the share command in ``Sharing a resource explicitly''.)

To share a resource automatically, add that resource to the list in /etc/dfs/dfstab using any text editor.

See the dfstab(4) manual page for more information on the syntax of /etc/dfs/dfstab, and ``Example: sharing a resource automatically'' for a sample dfstab file entry.

Example: sharing a resource automatically

You want the directory editors to be available to all clients at all times. The directory is an NFS resource, located in your /export directory. Use your text editor to add the share command to the /etc/dfs/dfstab file. The file entry should look like this:

   share -F nfs /export/editors

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004