/etc/exports: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 6: Line 6:


<tt>/etc/exports</tt> 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 <tt>[[exportfs]]</tt> command.
<tt>/etc/exports</tt> 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 <tt>[[exportfs]]</tt> command.
==/etc/exports.d==
After  reading  <tt>/etc/exports</tt>,  exportfs  reads  files  in the <tt>/etc/exports.d</tt> 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 <tt>/etc/exports</tt>.


=Example=
=Example=


<pre>
<pre>
/volume1/wiki       192.168.1.2(rw,async,no_wdelay,no_root_squash,insecure_locks,sec=sys,anonuid=0,anongid=0)
/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)
/volume3/dropbox 192.168.1.0/24(rw,async,no_wdelay,no_root_squash,insecure_locks,sec=sys,anonuid=0,anongid=0)
</pre>
</pre>
Line 16: Line 20:
=Configuration Options=
=Configuration Options=


<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
{{Internal|Linux_NFS_Configuration#Export_Options|/etc/exports Export Options}}
:[[Linux_NFS_Configuration#Export_Options|<tt>/etc/exports</tt> Export Options]]
</blockquote>

Latest revision as of 13:19, 16 May 2017

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