EXPORTS(4) — Silicon Graphics
NAME
exports − NFS filesystems being exported
SYNOPSIS
/etc/exports
DESCRIPTION
The file /etc/exports describes the filesystems which are being exported to nfs(7) clients. It is created by the system administrator using a text editor and processed by the mount request daemon mountd(1M) each time a mount request is received.
The file consists of a list of filesystems, the netgroup(4) or machine names allowed to remote mount each filesystem, and possibly a list of options. The filesystem names are left justified and followed by a list of names separated by white space. The names will be looked up in /etc/netgroup and then in /etc/hosts. Options begin with a hyphen and are separated by commas. Currently mountd understands the following options:
roPrevent clients from writing to this entry’s filesystem; allow reading only.
rwAllow clients both to read and to write this entry’s filesystem.
hidePrevents a client who mounts this entry’s parent filesystem from accessing files in this filesystem. Instead, clients who mount a filesystem containing a hidden filesystem access the directory on which the hidden child is mounted, not the child filesystem’s root directory.
nohide
Allows a client who mounts this entry’s parent filesystem to access files in this filesystem.
rootid=uid
Translate credentials for client operations issued by root on a client to have effective user-id uid. uid may be either a name or an integer user-id from /etc/passwd
The default options are rw,hide,rootid=nobody. A filesystem name with no name list following means export to everyone. A “#” anywhere in the file indicates a comment extending to the end of the line it appears on. Lines beginning with white space are continuation lines.
EXAMPLE
/usrclients# export to my clients
/usr/local# export to the world
/usr2phoenix sun sundae# export to only these machines
/usr3-rootid=guest# map client root to guest
/-ro# export the root and usr filesystems
/usr-ro,nohide# export all local filesystems read-only
Exporting all your machine’s local filesystems requires enumerating
all local mount points, and using “nohide” for each root filesystem:
/−ro
/usr−ro,nohide
/d−ro,nohide
FILES
/etc/exports
SEE ALSO
Version 3.6 — December 20, 1987