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

Sharing a set of resources

To share a set of resources, do the following:

  1. Create a file that lists the resources you want to share. The syntax of the entries in your file is the same syntax as the share command and the entries in the dfstab file, as follows:

    share [-F fstype] [-o fs_options] [-d description]
    [pathname [resourcename]]

  2. Specify this file as the input file to the shareall command, which has the following syntax:

    shareall [-F fsys[,fsys ... ]] [file]

    If you do not specify an input file, the /etc/dfs/dfstab file is used by default.

See the shareall(1M) manual page for an explanation of the options accepted by the shareall command. For an illustration of shareall in use, see ``Example: sharing a set of resources''.

Example: sharing a set of resources

Create an input file called misc that contains commands to share three separate resources. The file looks like this:

   share -F nfs -o ro,rw=art.dept /export/graphics
   share -F nfs /usr/man
To share all the resources listed in the file you created, type the following:

shareall misc

To share only the NFS resources listed in the misc file, type the following:

shareall -F nfs misc


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