Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ exportfs(1M) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

showmount(1M)






       exportfs(1M)                   (NFS)                    exportfs(1M)


       NAME
             exportfs - export and unexport directories to NFS clients

       SYNOPSIS
             /usr/sbin/exportfs [-aiuv] [-o options] [pathname]

       DESCRIPTION
             The exportfs command makes a local directory or filename
             available for mounting over the network by NFS clients.

          Files
             /etc/dfs/dfstab     static export information
             /etc/dfs/sharetab   current state of exported pathnames

       USAGE
             exportfs uses information contained in the /etc/dfs/dfstab
             file to export pathname (which must be specified as a full
             pathname).  The user with appropriate administrative
             privileges can run exportfs at any time to alter the list or
             characteristics of exported directories and filenames.
             Directories and files that are currently exported are listed
             in the file /etc/dfs/sharetab.

             With no options or arguments, exportfs prints out the list of
             directories and filenames currently exported.

          Options
             -a    All.  Export all pathnames listed in /etc/dfs/dfstab, or
                   if -u is also specified, unexport all of the currently
                   exported pathnames.

             -i    Ignore the options in /etc/dfs/dfstab.  Normally,
                   exportfs will consult /etc/dfs/dfstab for the options
                   associated with the exported pathname.

             -u    Unexport the indicated pathname.  A pathname is required
                   if -u is not used in conjunction with -a.

             -v    Verbose.  Print each directory or filename as it is
                   exported or unexported.

             -o options
                   Specify a comma-separated list of optional
                   characteristics for the pathname being exported.
                   options can be selected from among:



                           Copyright 1994 Novell, Inc.               Page 1













      exportfs(1M)                   (NFS)                    exportfs(1M)


                  ro    Export the pathname read-only. If not specified,
                        the pathname is exported read-write.

                  rw= hostname[: hostname]...
                        Export the pathname read-mostly.  Read-mostly
                        means exported read-only to most machines, but
                        read-write to those specified.  If not specified,
                        the pathname is exported read-write to all.

                  anon= uid
                        If a request comes from an unknown user, use UID
                        as the effective user.  ID.  Note: root users (UID
                        0) are always considered ``unknown'' by the NFS
                        server, unless they are included in the root
                        option below. The default value for this option is
                        -2.  Setting the value of anon to -1 disables
                        anonymous access.  Note that, by default, secure
                        NFS accepts insecure requests as anonymous, and
                        those wishing for extra security can disable this
                        feature by setting anon to -1.

                  root= hostname[: hostname] . . .
                        Give root access only to the root users from a
                        specified hostname.  The default is for no hosts
                        to be granted root access.

                  access= client[: client] . . .
                        Give mount access to each client listed.

                  secure
                        Require clients to use a more secure protocol when
                        accessing the directory.
            Note that you cannot export a directory that is either a
            parent- or a sub-directory of one that is currently exported
            and within the same file system.  It would be invalid, for
            example, to export both /usr and /usr/local if both
            directories resided in the same disk partition.

      REFERENCES
            showmount(1M)








                          Copyright 1994 Novell, Inc.               Page 2








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026