HP-UX Reference (11i v1 05/09) - 4 File Formats (vol 8)

e
exports(4) exports(4)
NAME
exports, xtab - directories to export to NFS clients
SYNOPSIS
/etc/exports
/etc/xtab
DESCRIPTION
File /etc/exports describes the directories that can be exported to NFS clients. The system adminis-
trator creates it using a text editor. mountd
processes it each time a mount request is received (see
mountd(1M)).
/etc/exports is read automatically by the
exportfs command (see exportfs(1M)). If this file is
changed,
exportfs must be run (exportfs -a
) before the changes can affect the daemon’s operation.
If this file is present at boot time, the
/sbin/init.d/nfs.server
script will execute an exportfs
command and export the file systems listed in the file.
/etc/xtab contains entries for directories that are currently exported. (Use exportfs -u to remove
entries from this file).
An entry for a directory consists of a command line of the following form:
directory - option[, option ] ...
where directory is the path name of a directory (or file).
options can have any of the following values and forms:
ro Export the directory read-only. If not specified, the directory is exported read-write. The
ro and rw options cannot be used on the same exports line.
rw=hostname[:hostname]...
Export the directory read-mostly. Read-mostly means read-only to most machines, but
read-write to those specified. If neither ro nor rw is specified, the directory is exported
read-write to all. The ro and rw options cannot be used on the same exports line. Up to
256 hostnames can be specified. With a server configured for DNS naming in the nsswitch
"hosts" entry, any hostname must be represented as a fully qualified DNS name. Currently
HP-UX will attempt to match a non-fully qualified hostname; this HP-only feature will be
obsoleted in a later release of HP-UX.
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 anon to -1 disables anonymous access.
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. Up to 256 hostnames can be specified. hostnames on this
list are not guaranteed to successfully mount the specified file system. If a non-empty
access list is specified, the hostname must also meet one of the access_list criteria described
below as well. Up to 256 hostnames can be specified. With a server configured for DNS
naming in the nsswitch "hosts" entry, any hostname must be represented as a fully
qualified DNS name. Currently HP-UX will attempt to match a non-fully qualified host-
name; this HP-only feature will be obsoleted in a later release of HP-UX.
access=[access_list][:access_list]...
Give mount access to each access_list listed. See the "access_list" subsection below. An
empty access= list allows all machines to mount the specified mount point.
access_list
The access_list argument is a colon-separated list whose components may be any
number of the following:
hostname
The name of a host. With a server configured for DNS naming in the nsswitch
"hosts" entry, any hostname must be represented as a fully qualified DNS name.
Section 450 Hewlett-Packard Company 1 HP-UX 11i Version 1: September 2005