/etc/exports

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

/etc/exports contains a table of local physical file systems on an NFS server that are accessible to NFS clients. The contents of the file are maintained by the server's system administrator. Each file system in this table has a list of options and an access control list. The table is used by exportfs command.

/etc/exports.d

After reading /etc/exports, exportfs reads files in the /etc/exports.d directory as extra export tables. Only files ending in .exports are considered. Files beginning with a dot are ignored. The format for extra export tables is the same as /etc/exports.

Example

/volume1/wiki    192.168.1.2(rw,async,no_wdelay,no_root_squash,insecure_locks,sec=sys,anonuid=0,anongid=0)
/volume3/dropbox 192.168.1.0/24(rw,async,no_wdelay,no_root_squash,insecure_locks,sec=sys,anonuid=0,anongid=0)

Configuration Options

/etc/exports Export Options