Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exportfs(8)

nfsd(8)

hosts(4)

netgroup(4)

exports(4)



  exports(4)                          CLIX                          exports(4)



  NAME

    exports, xtab - Directories to export to NFS clients

  DESCRIPTION

    The /etc/exports file contains entries for directories that can be
    exported to NFS clients.  The file is read automatically by the exportfs
    command.  If you change this file, you must run the exportfs command for
    the changes to affect the daemon operation.

    When the /etc/exports file is present at boot time, the /etc/init.d/nfs
    script runs the exportfs command and starts the NFS file system daemon,
    nfsd.

    The /etc/xtab file contains entries for directories that are currently
    exported.  (Use the -u flag of exportfs to remove entries from this file.)

    The syntax for an entry in the exports file is as follows:

    directory -option[,option ... ]

    The following explains the syntax:

    ⊕  The directory parameter is the pathname of a directory.

    ⊕  The option parameter is one of the following:

       ro     Exports the directory as read-only.  By default, the directory
              is exported as read-write.

       rw=hostname[:hostname ... ]
              Exports the directory as read-mostly.  Read-mostly means
              directories are exported as read-only to all hosts not specified
              by hostname.  By default, the directory is exported read-write
              to all hosts.

       root=hostname[:hostname ... ]
              Gives root access only to the root users from a specified
              hostname.  The default grants root access to no hosts.

       anon=uid
              If a request comes from a ``root'' user, uses uid as the
              effective user ID.

              Root users (uid 0) are always considered unknown by the NFS
              server, unless they are included in the root= option.  The
              default value for this option is -2.  Setting the value of anon
              to -1 disables anonymous access.  By default, secure NFS accepts
              insecure requests as anonymous.  Users wanting extra security
              can disable this feature by setting anon to -1.



  2/94 - Intergraph Corporation                                              1






  exports(4)                          CLIX                          exports(4)



       access=client[:client ... ]
              Gives mount access to each client listed.  A client can be a
              hostname or a netgroup.  (Refer to netgroup(4).)  Each client is
              checked for first in the /etc/netgroup database, and then the
              /etc/hosts database.  The default access value allows any host
              to mount the given directory.

  EXAMPLES

    The following is an example of an exports file.  A number sign (#)
    anywhere in the file indicates a comment region to the right of the number
    sign.

    /usr       -access=clients             # export to my clients
    /usr/local                             # export to the world
    /usr2      -access=hermes:zip:tutorial # export to only these machines
    /usr/sun   -root=hermes:zip            # give root access only to these
    /usr/new   -anon=0                     # give all machines root access
    /usr/bin   -ro                         # export read-only to everyone
    /usr/stuff -access=zip,anon=-3,ro      # several options on one line


  FILES

    /etc/exports
           Directories to export to NFS clients.

    /etc/xtab
           Currently exported directories.

    /etc/hosts
           Hostname database.

    /etc/netgroup
           List of network groups.

    /etc/init.d/nfs
           Start/stop script for NFS.

  CAUTIONS

    You cannot export a directory that is a parent directory or subdirectory
    of, and within, the same file system as a currently exported directory.
    For example, you cannot export both /usr and /usr/ip32 if both directories
    reside on the same disk partition.

  RELATED INFORMATION

    Commands:  exportfs(8), nfsd(8)

    Files:  hosts(4), netgroup(4)



  2                                              Intergraph Corporation - 2/94






  exports(4)                          CLIX                          exports(4)



    CLIX Programming Guide, Intergraph Guide to CLIX NFS





















































  2/94 - Intergraph Corporation                                              3




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