|NFS.CONF(5)||File Formats Manual||NFS.CONF(5)|
When command line options are provided, they override values set in this file. When this file does not specify a particular parameter, and no command line option is provided, each tool provides its own default values.
The file format supports multiple sections, each of which can contain multiple value assignments. A section is introduced by a line containing the section name enclosed in square brackets, so
Any line starting with “#” or “;” is ignored, as is any blank line.
If the assigned value started with a “$” then the remainder is treated as a name and looked for in the section [environment] or in the processes environment (see environ(7)). The value found is used for this value.
The value name include is special. If a section contains
Lookup of section and value names is case-insensitive.
Where a Boolean value is expected, any of true, t, yes, y, on, or 1 can be used for "true", while false, f, no, n, off, or 0 can be used for "false". Comparisons are case-insensitive.
- Recognized values: pipefs-directory.
- Recognized values: rootdir.
Setting rootdir to a valid path causes the nfs server to act as if the supplied path is being prefixed to all the exported entries. For instance, if rootdir=/my/root, and there is an entry in /etc/exports for /filesystem, then the client will be able to mount the path as /filesystem, but on the server, this will resolve to the path /my/root/filesystem.
- Recognized values: threads, state-directory-path
See exportd(8) for details.
- Recognized values: storagedir.
The nfsdcltrack program is run directly by the Linux kernel and there is no opportunity to provide command line arguments, so the configuration file is the only way to configure this program. See nfsdcltrack(8) for details.
- Recognized values: threads, host, port,
grace-time, lease-time, udp, tcp,
vers2, vers3, vers4, vers4.0, vers4.1,
Version and protocol values are Boolean values as described above, and are also used by rpc.mountd. Threads and the two times are integers. port and rdma are service names or numbers. See rpc.nfsd(8) for details.
- Recognized values: manage-gids, descriptors, port,
threads, reverse-lookup, state-directory-path,
These, together with the protocol and version values in the [nfsd] section, are used to configure mountd. See rpc.mountd(8) for details.
The state-directory-path value in the [mountd] section is also used by exportfs(8).
- Recognized values: port, outgoing-port, name,
See rpc.statd(8) for details.
- Recognized values: port and udp-port.
See rpc.statd(8) for details.
- Recognized values: retry-time, outgoing-port, and
See sm-notify(8) for details.
- Recognized values: verbosity, rpc-verbosity,
use-memcache, use-machine-creds, use-gss-proxy,
avoid-dns, limit-to-legacy-enctypes, context-timeout,
rpc-timeout, keytab-file, cred-cache-directory,
See rpc.gssd(8) for details.
- Recognized values: principal.
See rpc.svcgssd(8) for details.
- Only debug= is recognized.
- Default NFS client configuration file
- When this directory exists and files ending with ".conf" exist, those files will be used to set configuration variables. These files will override variables set in /etc/nfs.conf