Network Appliance(TM)

Manual Pages


Table of Contents

NAME

exportfs - export and unexport directories and files

SYNOPSIS

exportfs [ -aiuv ] [ -o options ] [ pathname ]

DESCRIPTION

If no pathname is specified, exportfs lists all currently exported directories and filenames. If pathname is specified, exportfs makes the directory or file specified by pathname available for mounting over the network by NFS clients.

OPTIONS

-a Takes the list of pathnames to be exported or unexported from /etc/exports. (This has the effect of ignoring pathname if the command included pathname.)

-i
Ignores the options in /etc/exports. Normally, exportfs uses the options associated with the pathname specified in /etc/exports, if available.

-u
Unexports the specified pathname. However, if -a is also specified, unexports the pathnames listed in /etc/exports and ignores pathname.

-v
Prints each pathname as it is exported or unexported.

-o options
Specifies a comma-separated list of options for the pathname being exported. options can be any of the following:

access=hostname[:hostname]...
Restricts access to the hosts listed. A netgroup defined in /etc/netgroup can be specified in place of a hostname for this option.

anon=uid
If a request comes from user ID of 0 (root user ID on the client), use uid as the effective user ID unless the client host is included in the root option below. The default value is 65534. Setting the value of "anon" to 65535 disables all root access. A value of 0 grants root access to all clients.

ro Exports the pathname read-only. If not specified, pathname is exported read/write.

rw=hostname[:hostname]...
Exports the pathname read-only to all hosts not specified in the list and read-write to the hosts in the list. Netgroup names are not allowed in the list.

root=hostname[:hostname]...
Gives root access only to the specified hosts. The default is for no hosts to be granted root access. Netgroup names are not allowed in the list.

FILES

/etc/exports
directories and files exported to NFS clients
/etc/hosts
host name data base
/etc/netgroup
network groups data base

SEE ALSO

na_exports(5), na_hosts(5), na_netgroup(5)

NOTES

Data ONTAP supports a maximum of 100 hostnames in each rw= and root= option. There is no limit on the number of hostnames in an individual access= list, but the total size of /etc/exports is limited to about 64 KB.


Table of Contents