Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ exportfs(1M) — Interactive 3.2r4.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exports(4)

netgroup(4)

exportfs(1M)  —  

NAME

exportfs − export and unexport directories to NFS clients

SYNOPSIS

/etc/exportfs [ −avui ] [ −o options ] [ −e export_entry ] [ directory ]

DESCRIPTION

exportfs makes a local directory (or file name) available for mounting over the network by NFS clients.  It is normally invoked at boot time by the NFS startup script /etc/rc3.d/S72nfs, and uses information contained in the /etc/exports file to export directories (which must be specified as full path names).  The superuser can run exportfs at any time to alter the list or characteristics of exported directories.  Directories that are currently exported are listed in the file /etc/xtab. 

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

The following options are available:

−a All.  Export all directories listed in /etc/exports, or if −u is also specified, unexport all of the currently exported ­directories. 

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

−u Unexport the indicated directories. 

−i Ignore the options in /etc/exports.  Normally, exportfs will consult /etc/exports for the options associated with the exported directory. 

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

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

rw=hostname[:hostname]...
Export the directory read-mostly. Read-mostly means exported read-only to most machines, but read-write to those specified. If not specified, the directory 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 NFS accepts insecure requests as anonymous, but users who want 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.  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 /etc/netgroup database and then in the /etc/hosts database.  The default value allows any machine to mount the given directory. 

−e export_entry
Allow a new filesystem to be exported by passing the /etc/exports entry for it on the command line.  This is most useful for exporting transient filesystems (like CD-ROMs) that shouldn’t always be automatically exported. 

FILES

/etc/exports static export information

/etc/xtab current state of exported directories

/etc/netgroup list of network wide groups

/etc/rc3.d/S72nfs NFS startup script

SEE ALSO

exports(4), netgroup(4). 

WARNING

You cannot export a directory that is either a parent or a subdirectory of one that is currently exported and within the same file system. It would be illegal, for example, to export both /usr and /usr/local if both directories resided in the same disk partition. 

\*U  —  Version 1.0

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