Manual Pages


Table of Contents

NAME

exports - directories and files exported to NFS clients

SYNOPSIS

/etc/exports

DESCRIPTION

/etc/exports contains a list of directories and files that are exported by the server. Changes to this file do not take effect until the exportfs command (see na_exportfs(1)) is run or the system is rebooted.

During server initialization, exportfs -a is executed from the /etc/rc script to export all files and directories listed.

Each export entry consists of a line of the following format:

pathname
-option[,option ]...

pathname
is the pathname of a directory or file to be exported.

option
is one of the following:

access=hostname[:hostname]...
Give mount access to each 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 to 0 grants root access to all clients.

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

rw=hostname[:hostname]...
Export 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]...
Give root access only the the specified hosts.

The default is for no hosts to be granted root access. Netgroup names are not allowed in the list.

In UNIX, it is illegal to export a directory that has an exported ancestor in the same file system. Since Data ONTAP supports just one large file system, this limitation would be unduly restrictive. Thus, it is perfectly legal to export both / and /home. In determining permissions, the longest matching prefix is used. For example, the following /etc/exports would allow all network clients to mount /home but only host adminhost can mount /.

  /    -access=adminhost,root=adminhost
  /home

BUGS

The filer 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.

FILES

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

SEE ALSO

na_exportfs(1), na_reboot(1), na_hosts(5), na_netgroup(5), na_rc(5)


Table of Contents