Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ exports(4) — sysv — mips UMIPS RISC/os 4.52

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exportent(3)

hosts(4)

netgroup(4)

exportfs(1M)

nfsd(1M)



EXPORTS(4-SysV)     RISC/os Reference Manual      EXPORTS(4-SysV)



NAME
     exports, xtab - directories to export to NFS clients

SYNOPSIS
     /etc/exports

     /etc/xtab

DESCRIPTION
     The /etc/exports file contains entries for directories that
     can be exported to NFS clients.  This file is read automati-
     cally by the exportfs(1M) command.  If you change this file,
     you must run exportfs(1M) for the changes to affect the
     daemon's operation.

     Only when this file is present at boot time does the NFS
     startup script (/etc/rc2.d/S40nfs, which invokes
     /etc/init.d/nfs) execute exportfs(1M) and start the NFS
     file-system daemon, nfsd(1M).

     The /etc/xtab file contains entries for directories that are
     currently exported.  This file should only be accessed by
     programs using getexportent (see exportent(3)).  (Use the -u
     option of exportfs to remove entries from this file).

     An entry for a directory consists of a line of the following
     form:

          directory   -option[,option ]...

     directory   is the pathname of a directory (or file).

     option      is one of:

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

                 rw       Export all directories read-mostly.
                          See below for more details.  This
                          option was added for backwards compati-
                          bility and basically is a no-op since
                          this is the default mode.

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

                 anon=uid If a request comes from an unknown



                         Printed 1/15/91                   Page 1





EXPORTS(4-SysV)     RISC/os Reference Manual      EXPORTS(4-SysV)



                          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 anon to -1
                          disables anonymous access. Note: by
                          default secure NFS will accept insecure
                          requests as anonymous, and those wish-
                          ing for extra security can disable this
                          feature by setting anon to -1.

                 rootid=uid|name
                          Same as anon option except name is a
                          user's login name.  This option accepts
                          both types of input and was added for
                          backwards compatibility.

                 root=hostnames[: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.  A client can either be a host-
                          name, or a netgroup (see netgroup(4)).
                          Each client in the list is first
                          checked for in the netgroup database,
                          and then the hosts database.  The
                          default value allows any machine to
                          mount the given directory.

                 secure   Require clients to use a more secure
                          protocol when accessing the directory.

     A `#' (pound-sign) anywhere in the file indicates a comment
     that extends to the end of the line.

EXAMPLES
     /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







 Page 2                  Printed 1/15/91





EXPORTS(4-SysV)     RISC/os Reference Manual      EXPORTS(4-SysV)



FILES
     /etc/exports
     /etc/xtab
     /etc/hosts
     /etc/netgroup
     /etc/init.d/nfs

SEE ALSO
     exportent(3), hosts(4), netgroup(4).
     exportfs(1M), nfsd(1M) in the System Administrator's Refer-
     ence Manual.

WARNINGS
     You cannot export either a parent directory or a subdirec-
     tory of an exported directory that is within the same
     filesystem.  It would be illegal, for instance, to export
     both /usr and /usr/local if both directories resided on the
     same disk partition.

ORIGIN
     Sun Microsystems, NFS 4.0


































                         Printed 1/15/91                   Page 3



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