1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321
|
.TH NFS.CONF 5
.SH NAME
nfs.conf \- general configuration for NFS daemons and tools
.SH SYNOPSIS
.I /usr/etc/nfs.conf
.I /usr/etc/nfs.conf.d/
.I /etc/nfs.conf
.I /etc/nfs.conf.d/
.SH DESCRIPTION
.PP
These files contain site-specific configuration for various NFS daemons
and other processes. Most configuration can also be passed to
processes via command line arguments, but it can be more convenient to
have a central file. In particular, this encourages consistent
configuration across different processes.
.PP
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.
.PP
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
.RS
.B [global]
.RE
would introduce a section called
.BR global .
A value assignment is a single line that has the name of the value, an
equals sign, and a setting for the value, so
.RS
.B threads = 4
.RE
would set the value named
.B threads
in the current section to
.BR 4 .
Leading and trailing spaces and tab
are ignored, as are spaces and tabs surrounding the equals sign.
Single and double quotes surrounding the assigned value are also
removed. If the resulting string is empty, the whole assignment
is ignored.
.PP
Any line starting with
.RB \*(lq # \*(rq
or
.RB \*(lq ; \*(rq
is ignored, as is any blank line.
.PP
If the assigned value started with a
.RB \*(lq $ \*(rq
then the remainder is treated as a name and looked for in the section
.B [environment]
or in the processes environment (see
.BR environ (7)).
The value found is used for this value.
.PP
The value name
.B include
is special. If a section contains
.RS
.B include = /some/file/name
.RE
then the named file will be read, and any value assignments found
there-in will be added to the current section. If the file contains
section headers, then new sections will be created just as if the
included file appeared in place of the
.B include
line.
If the file name starts with a hyphen then that is stripped off
before the file is opened, and if file doesn't exist no warning is
given. Normally a non-existent include file generates a warning.
.PP
Lookup of section and value names is case-insensitive.
Where a Boolean value is expected, any of
.BR true ,
.BR t ,
.BR yes ,
.BR y ,
.BR on ", or"
.B 1
can be used for "true", while
.BR false ,
.BR f ,
.BR no ,
.BR n ,
.BR off ", or"
.B 0
can be used for "false". Comparisons are case-insensitive.
.SH SECTIONS
The following sections are known to various programs, and can contain
the given named values. Most sections can also contain a
.B debug
value, which can be one or more from the list
.BR general ,
.BR call ,
.BR auth ,
.BR parse ,
.BR all .
When a list is given, the members should be comma-separated.
The values
.BR 0
and
.BR 1
are also accepted, with '0' making no changes to the debug level, and '1' equivalent to specifying 'all'.
.TP
.B general
Recognized values:
.BR pipefs-directory .
See
.BR blkmapd (8),
.BR rpc.idmapd (8),
and
.BR rpc.gssd (8)
for details.
.TP
.B exports
Recognized values:
.BR rootdir .
Setting
.B 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
.BR rootdir=/my/root ,
and there is an entry in /etc/exports for
.BR /filesystem ,
then the client will be able to mount the path as
.BR /filesystem ,
but on the server, this will resolve to the path
.BR /my/root/filesystem .
.TP
.B exportd
Recognized values:
.BR manage-gids ,
.BR threads ,
.BR cache-use-ipaddr ,
.BR ttl ,
.BR state-directory-path
See
.BR exportd (8)
for details.
Note that setting
.B "\[dq]debug = auth\[dq]"
for
.B exportd
is equivalent to providing the
.B \-\-log\-auth
option.
.TP
.B nfsd
Recognized values:
.BR threads ,
.BR host ,
.BR scope ,
.BR port ,
.BR grace-time ,
.BR lease-time ,
.BR udp ,
.BR tcp ,
.BR vers3 ,
.BR vers4 ,
.BR vers4.0 ,
.BR vers4.1 ,
.BR vers4.2 ,
.BR rdma ,
Version and protocol values are Boolean values as described above,
and are also used by
.BR rpc.mountd .
Threads and the two times are integers.
.B port
and
.B rdma
are service names or numbers. See
.BR rpc.nfsd (8)
for details.
.TP
.B mountd
Recognized values:
.BR manage-gids ,
.BR descriptors ,
.BR port ,
.BR threads ,
.BR reverse-lookup ,
.BR cache-use-ipaddr ,
.BR ttl ,
.BR state-directory-path ,
.BR ha-callout .
These, together with the protocol and version values in the
.B [nfsd]
section, are used to configure mountd. See
.BR rpc.mountd (8)
for details.
Note that setting
.B "\[dq]debug = auth\[dq]"
for
.B mountd
is equivalent to providing the
.B \-\-log\-auth
option.
The
.B state-directory-path
value in the
.B [mountd]
section is also used by
.BR exportfs (8).
.TP
.B statd
Recognized values:
.BR port ,
.BR outgoing-port ,
.BR name ,
.BR state-directory-path ,
.BR ha-callout .
See
.BR rpc.statd (8)
for details.
.TP
.B lockd
Recognized values:
.B port
and
.BR udp-port .
See
.BR rpc.statd (8)
for details.
.TP
.B sm-notify
Recognized values:
.BR retry-time ,
.BR outgoing-port ", and"
.BR outgoing-addr .
See
.BR sm-notify (8)
for details.
.TP
.B gssd
Recognized values:
.BR verbosity ,
.BR rpc-verbosity ,
.BR use-memcache ,
.BR use-machine-creds ,
.BR use-gss-proxy ,
.BR avoid-dns ,
.BR limit-to-legacy-enctypes ,
.BR context-timeout ,
.BR rpc-timeout ,
.BR keytab-file ,
.BR cred-cache-directory ,
.BR preferred-realm ,
.BR set-home .
See
.BR rpc.gssd (8)
for details.
.TP
.B svcgssd
Recognized values:
.BR principal .
See
.BR rpc.svcgssd (8)
for details.
.TP
.B exportfs
Only
.B debug=
is recognized.
.TP
.B nfsrahead
Recognized values:
.BR nfs ,
.BR nfsv4 ,
.BR default .
See
.BR nfsrahead (5)
for deatils.
.SH FILES
.I /usr/etc/nfs.conf
.br
.I /usr/etc/nfs.conf.d/*.conf
.br
.I /etc/nfs.conf
.br
.I /etc/nfs.conf.d/*.conf
.br
.IP
Various configuration files read in order. Later settings override
earlier settings.
.SH SEE ALSO
.BR rpc.nfsd (8),
.BR rpc.mountd (8),
.BR nfsmount.conf (5).
|