]> arthur.barton.de Git - netatalk.git/blob - man/man5/afp.conf.5.in
Add advanced option "chmod request" controlling ACLs
[netatalk.git] / man / man5 / afp.conf.5.in
1 '\" t
2 .\"     Title: afp.conf
3 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.78.0 <http://docbook.sf.net/>
5 .\"      Date: 05 Jun 2014
6 .\"    Manual: @NETATALK_VERSION@
7 .\"    Source: @NETATALK_VERSION@
8 .\"  Language: English
9 .\"
10 .TH "AFP\&.CONF" "5" "05 Jun 2014" "@NETATALK_VERSION@" "@NETATALK_VERSION@"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 afp.conf \- Netatalk configuration file
32 .SH "SYNOPSIS"
33 .PP
34 The
35 afp\&.conf
36 file is the configuration file for the
37 \fBNetatalk\fR
38 AFP file server\&.
39 .PP
40 All AFP specific configuration and AFP volume definitions are done via this file\&.
41 .SH "FILE FORMAT"
42 .PP
43 The file consists of sections and parameters\&. A section begins with the name of the section in square brackets and continues until the next section begins\&. Sections contain parameters of the form:
44 .sp
45 .if n \{\
46 .RS 4
47 .\}
48 .nf
49     \fIname\fR = \fIvalue \fR
50     
51 .fi
52 .if n \{\
53 .RE
54 .\}
55 .PP
56 The file is line\-based \- that is, each newline\-terminated line represents either a comment, a section name or a parameter\&.
57 .PP
58 Section and parameter names are case sensitive\&.
59 .PP
60 Only the first equals sign in a parameter is significant\&. Whitespace before or after the first equals sign is discarded\&. Leading, trailing and internal whitespace in section and parameter names is irrelevant\&. Leading and trailing whitespace in a parameter value is discarded\&. Internal whitespace within a parameter value is retained verbatim\&.
61 .PP
62 Any line beginning with a semicolon (\(lq;\(rq) or a hash (\(lq#\(rq) character is ignored, as are lines containing only whitespace\&.
63 .PP
64 Any line ending in a
65 \(lq \e \(rq
66 is continued on the next line in the customary UNIX fashion\&.
67 .PP
68 The values following the equals sign in parameters are all either a string (no quotes needed) or a boolean, which may be given as yes/no, 1/0 or true/false\&. Case is not significant in boolean values, but is preserved in string values\&. Some items such as create masks are numeric\&.
69 .PP
70 The parameter
71 \fBinclude = \fR\fB\fIpath\fR\fR
72 allows you to include one config file inside another\&. The file is included literally, as though typed in place\&. Nested includes are not supported\&.
73 .SH "SECTION DESCRIPTIONS"
74 .PP
75 Each section in the configuration file (except for the [Global] section) describes a shared resource (known as a
76 \(lqvolume\(rq)\&. The section name is the name of the volume and the parameters within the section define the volume attributes and options\&.
77 .PP
78 There are two special sections, [Global] and [Homes], which are described under
79 \fIspecial sections\fR\&. The following notes apply to ordinary section descriptions\&.
80 .PP
81 A volume consists of a directory to which access is being given plus a description of the access rights which are granted to the user of the service\&. For volumes the
82 \fBpath\fR
83 option must specify the directory to share\&.
84 .PP
85 Any volume section without
86 \fBpath\fR
87 option is considered a
88 \fIvol preset\fR
89 which can be selected in other volume sections via the
90 \fBvol preset\fR
91 option and constitutes defaults for the volume\&. For any option specified both in a preset
92 \fIand\fR
93 in a volume section the volume section setting completely substitutes the preset option\&.
94 .PP
95 The access rights granted by the server are masked by the access rights granted to the specified or guest UNIX user by the host system\&. The server does not grant more access than the host system grants\&.
96 .PP
97 The following sample section defines an AFP volume\&. The user has full access to the path
98 /foo/bar\&. The share is accessed via the share name
99 baz:
100 .sp
101 .if n \{\
102 .RS 4
103 .\}
104 .nf
105  [baz]
106     path = /foo/bar 
107 .fi
108 .if n \{\
109 .RE
110 .\}
111 .SH "SPECIAL SECTIONS"
112 .SS "The [Global] section"
113 .PP
114 Parameters in this section apply to the server as a whole\&. Parameters denoted by a (G) below are must be set in this section\&.
115 .SS "The [Homes] section"
116 .PP
117 This section enable sharing of the UNIX server user home directories\&. Specifying an optional
118 \fBpath\fR
119 parameter means that not the whole user home will be shared but the subdirectory
120 \fBpath\fR\&. It is necessary to define the
121 \fBbasedir regex\fR
122 option\&. It should be a regex which matches the parent directory of the user homes\&. Parameters denoted by a (H) belong to volume sections\&. The optional parameter
123 \fBhome name\fR
124 can be used to change the AFP volume name which
125 \fI$u\*(Aqs home\fR
126 by default\&. See below under VARIABLE SUBSTITUTIONS\&.
127 .PP
128 The following example illustrates this\&. Given all user home directories are stored under
129 /home:
130 .sp
131 .if n \{\
132 .RS 4
133 .\}
134 .nf
135  [Homes]
136       path = afp\-data
137       basedir regex = /home
138 .fi
139 .if n \{\
140 .RE
141 .\}
142 .sp
143 For a user
144 \fIjohn\fR
145 this results in an AFP home volume with a path of
146 /home/john/afp\-data\&.
147 .PP
148 If
149 \fBbasedir regex\fR
150 contains symlink, set the canonicalized absolute path\&. When
151 /home
152 links to
153 /usr/home:
154 .sp
155 .if n \{\
156 .RS 4
157 .\}
158 .nf
159  [Homes]
160       basedir regex = /usr/home
161 .fi
162 .if n \{\
163 .RE
164 .\}
165 .SH "PARAMETERS"
166 .PP
167 Parameters define the specific attributes of sections\&.
168 .PP
169 Some parameters are specific to the [Global] section (e\&.g\&.,
170 \fIlog type\fR)\&. All others are permissible only in volume sections\&. The letter
171 \fIG\fR
172 in parentheses indicates that a parameter is specific to the [Global] section\&. The letter
173 \fIV\fR
174 indicates that a parameter can be specified in a volume specific section\&.
175 .SH "VARIABLE SUBSTITUTIONS"
176 .PP
177 You can use variables in volume names\&. The use of variables in paths is limited to $u\&.
178 .sp
179 .RS 4
180 .ie n \{\
181 \h'-04' 1.\h'+01'\c
182 .\}
183 .el \{\
184 .sp -1
185 .IP "  1." 4.2
186 .\}
187 if you specify an unknown variable, it will not get converted\&.
188 .RE
189 .sp
190 .RS 4
191 .ie n \{\
192 \h'-04' 2.\h'+01'\c
193 .\}
194 .el \{\
195 .sp -1
196 .IP "  2." 4.2
197 .\}
198 if you specify a known variable, but that variable doesn\*(Aqt have a value, it will get ignored\&.
199 .RE
200 .PP
201 The variables which can be used for substitutions are:
202 .PP
203 $b
204 .RS 4
205 basename
206 .RE
207 .PP
208 $c
209 .RS 4
210 client\*(Aqs ip address
211 .RE
212 .PP
213 $d
214 .RS 4
215 volume pathname on server
216 .RE
217 .PP
218 $f
219 .RS 4
220 full name (contents of the gecos field in the passwd file)
221 .RE
222 .PP
223 $g
224 .RS 4
225 group name
226 .RE
227 .PP
228 $h
229 .RS 4
230 hostname
231 .RE
232 .PP
233 $i
234 .RS 4
235 client\*(Aqs ip, without port
236 .RE
237 .PP
238 $s
239 .RS 4
240 server name (this can be the hostname)
241 .RE
242 .PP
243 $u
244 .RS 4
245 user name (if guest, it is the user that guest is running as)
246 .RE
247 .PP
248 $v
249 .RS 4
250 volume name
251 .RE
252 .PP
253 $$
254 .RS 4
255 prints dollar sign ($)
256 .RE
257 .SH "EXPLANATION OF GLOBAL PARAMETERS"
258 .SS "Authentication Options"
259 .PP
260 ad domain = \fIDOMAIN\fR \fB(G)\fR
261 .RS 4
262 Append @DOMAIN to username when authenticating\&. Useful in Active Directory environments that otherwise would require the user to enter the full user@domain string\&.
263 .RE
264 .PP
265 admin auth user = \fIuser\fR \fB(G)\fR
266 .RS 4
267 Specifying eg "\fBadmin auth user = root\fR" whenever a normal user login fails, afpd will try to authenticate as the specified
268 \fBadmin auth user\fR\&. If this succeeds, a normal session is created for the original connecting user\&. Said differently: if you know the password of
269 \fBadmin auth user\fR, you can authenticate as any other user\&.
270 .RE
271 .PP
272 k5 keytab = \fIpath\fR \fB(G)\fR, k5 service = \fIservice\fR \fB(G)\fR, k5 realm = \fIrealm\fR \fB(G)\fR
273 .RS 4
274 These are required if the server supports the Kerberos 5 authentication UAM\&.
275 .RE
276 .PP
277 nt domain = \fIDOMAIN\fR \fB(G)\fR, nt separator = \fISEPARATOR\fR \fB(G)\fR
278 .RS 4
279 Use for eg\&. winbind authentication, prepends both strings before the username from login and then tries to authenticate with the result through the available and active UAM authentication modules\&.
280 .RE
281 .PP
282 save password = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
283 .RS 4
284 Enables or disables the ability of clients to save passwords locally\&.
285 .RE
286 .PP
287 set password = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
288 .RS 4
289 Enables or disables the ability of clients to change their passwords via chooser or the "connect to server" dialog\&.
290 .RE
291 .PP
292 uam list = \fIuam list\fR \fB(G)\fR
293 .RS 4
294 Space or comma separated list of UAMs\&. (The default is "uams_dhx\&.so uams_dhx2\&.so")\&.
295 .sp
296 The most commonly used UAMs are:
297 .PP
298 uams_guest\&.so
299 .RS 4
300 allows guest logins
301 .RE
302 .PP
303 uams_clrtxt\&.so
304 .RS 4
305 (uams_pam\&.so or uams_passwd\&.so) Allow logins with passwords transmitted in the clear\&. (legacy)
306 .RE
307 .PP
308 uams_randum\&.so
309 .RS 4
310 allows Random Number and Two\-Way Random Number Exchange for authentication (requires a separate file containing the passwords, either @pkgconfdir@/afppasswd file or the one specified via "\fBpasswd file\fR"\&. See
311 \fBafppasswd\fR(1)
312 for details\&. (legacy)
313 .RE
314 .PP
315 uams_dhx\&.so
316 .RS 4
317 (uams_dhx_pam\&.so or uams_dhx_passwd\&.so) Allow Diffie\-Hellman eXchange (DHX) for authentication\&.
318 .RE
319 .PP
320 uams_dhx2\&.so
321 .RS 4
322 (uams_dhx2_pam\&.so or uams_dhx2_passwd\&.so) Allow Diffie\-Hellman eXchange 2 (DHX2) for authentication\&.
323 .RE
324 .PP
325 uam_gss\&.so
326 .RS 4
327 Allow Kerberos V for authentication (optional)
328 .RE
329 .RE
330 .PP
331 uam path = \fIpath\fR \fB(G)\fR
332 .RS 4
333 Sets the default path for UAMs for this server (default is @libdir@/netatalk)\&.
334 .RE
335 .SS "Charset Options"
336 .PP
337 With OS X Apple introduced the AFP3 protocol\&. One of the big changes was, that AFP3 uses Unicode names encoded as Decomposed UTF\-8 (UTF8\-MAC)\&. Previous AFP/OS versions used charsets like MacRoman, MacCentralEurope, etc\&.
338 .PP
339 To be able to serve AFP3 and older clients at the same time,
340 \fBafpd\fR
341 needs to be able to convert between UTF\-8 and Mac charsets\&. Even OS X clients partly still rely on the mac charset\&. As there\*(Aqs no way,
342 \fBafpd\fR
343 can detect the codepage a pre AFP3 client uses, you have to specify it using the
344 \fBmac charset\fR
345 option\&. The default is MacRoman, which should be fine for most western users\&.
346 .PP
347 As
348 \fBafpd\fR
349 needs to interact with UNIX operating system as well, it need\*(Aqs to be able to convert from UTF8\-MAC / Mac charset to the UNIX charset\&. By default
350 \fBafpd\fR
351 uses
352 \fIUTF8\fR\&. You can set the UNIX charset using the
353 \fBunix charset\fR
354 option\&. If you\*(Aqre using extended characters in the configuration files for
355 \fBafpd\fR, make sure your terminal matches the
356 \fBunix charset\fR\&.
357 .PP
358 mac charset = \fICHARSET\fR \fB(G)/(V)\fR
359 .RS 4
360 Specifies the Mac clients charset, e\&.g\&.
361 \fIMAC_ROMAN\fR\&. This is used to convert strings and filenames to the clients codepage for OS9 and Classic, i\&.e\&. for authentication and AFP messages (SIGUSR2 messaging)\&. This will also be the default for the volumes
362 \fBmac charset\fR\&. Defaults to
363 \fIMAC_ROMAN\fR\&.
364 .RE
365 .PP
366 unix charset = \fICHARSET\fR \fB(G)\fR
367 .RS 4
368 Specifies the servers unix charset, e\&.g\&.
369 \fIISO\-8859\-15\fR
370 or
371 \fIEUC\-JP\fR\&. This is used to convert strings to/from the systems locale, e\&.g\&. for authentication, server messages and volume names\&. If
372 \fILOCALE\fR
373 is set, the systems locale is used\&. Defaults to
374 \fIUTF8\fR\&.
375 .RE
376 .PP
377 vol charset = \fICHARSET\fR \fB(G)/(V)\fR
378 .RS 4
379 Specifies the encoding of the volumes filesystem\&. By default, it is the same as
380 \fBunix charset\fR\&.
381 .RE
382 .SS "Password Options"
383 .PP
384 passwd file = \fIpath\fR \fB(G)\fR
385 .RS 4
386 Sets the path to the Randnum UAM passwd file for this server (default is @pkgconfdir@/afppasswd)\&.
387 .RE
388 .PP
389 passwd minlen = \fInumber\fR \fB(G)\fR
390 .RS 4
391 Sets the minimum password length, if supported by the UAM
392 .RE
393 .SS "Network Options"
394 .PP
395 advertise ssh = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
396 .RS 4
397 Allows old Mac OS X clients (10\&.3\&.3\-10\&.4) to automagically establish a tunneled AFP connection through SSH\&. If this option is set, the server\*(Aqs answers to client\*(Aqs FPGetSrvrInfo requests contain an additional entry\&. It depends on both client\*(Aqs settings and a correctly configured and running
398 \fBsshd\fR(8)
399 on the server to let things work\&.
400 .if n \{\
401 .sp
402 .\}
403 .RS 4
404 .it 1 an-trap
405 .nr an-no-space-flag 1
406 .nr an-break-flag 1
407 .br
408 .ps +1
409 \fBNote\fR
410 .ps -1
411 .br
412 Setting this option is not recommended since globally encrypting AFP connections via SSH will increase the server\*(Aqs load significantly\&. On the other hand, Apple\*(Aqs client side implementation of this feature in MacOS X versions prior to 10\&.3\&.4 contained a security flaw\&.
413 .sp .5v
414 .RE
415 .RE
416 .PP
417 afp interfaces = \fIname [name \&.\&.\&.]\fR \fB(G)\fR
418 .RS 4
419 Specifies the network interfaces that the server should listens on\&. The default is advertise the first IP address of the system, but to listen for any incoming request\&.
420 .RE
421 .PP
422 afp listen = \fIip address[:port] [ip address[:port] \&.\&.\&.]\fR \fB(G)\fR
423 .RS 4
424 Specifies the IP address that the server should advertise
425 \fBand\fR
426 listens to\&. The default is advertise the first IP address of the system, but to listen for any incoming request\&. The network address may be specified either in dotted\-decimal format for IPv4 or in hexadecimal format for IPv6\&.
427 .sp
428 IPv6 address + port combination must use URL the format using square brackets [IPv6]:port
429 .RE
430 .PP
431 afp port = \fIport number\fR \fB(G)\fR
432 .RS 4
433 Allows a different TCP port to be used for AFP\&. The default is 548\&. Also sets the default port applied when none specified in an
434 \fBafp listen\fR
435 option\&.
436 .RE
437 .PP
438 cnid listen = \fIip address[:port] [ip address[:port] \&.\&.\&.]\fR \fB(G)\fR
439 .RS 4
440 Specifies the IP address that the CNID server should listen on\&. The default is
441 \fBlocalhost:4700\fR\&.
442 .RE
443 .PP
444 disconnect time = \fInumber\fR \fB(G)\fR
445 .RS 4
446 Keep disconnected AFP sessions for
447 \fInumber\fR
448 hours before dropping them\&. Default is 24 hours\&.
449 .RE
450 .PP
451 dsireadbuf = \fInumber\fR \fB(G)\fR
452 .RS 4
453 Scale factor that determines the size of the DSI/TCP readahead buffer, default is 12\&. This is multiplies with the DSI server quantum (default ~300k) to give the size of the buffer\&. Increasing this value might increase throughput in fast local networks for volume to volume copies\&.
454 \fINote\fR: This buffer is allocated per afpd child process, so specifying large values will eat up large amount of memory (buffer size * number of clients)\&.
455 .RE
456 .PP
457 fqdn = \fIname:port\fR \fB(G)\fR
458 .RS 4
459 Specifies a fully\-qualified domain name, with an optional port\&. This is discarded if the server cannot resolve it\&. This option is not honored by AppleShare clients <= 3\&.8\&.3\&. This option is disabled by default\&. Use with caution as this will involve a second name resolution step on the client side\&. Also note that afpd will advertise this name:port combination but not automatically listen to it\&.
460 .RE
461 .PP
462 hostname = \fIname\fR \fB(G)\fR
463 .RS 4
464 Use this instead of the result from calling hostname for determining which IP address to advertise, therefore the hostname is resolved to an IP which is the advertised\&. This is NOT used for listening and it is also overwritten by
465 \fBafp listen\fR\&.
466 .RE
467 .PP
468 max connections = \fInumber\fR \fB(G)\fR
469 .RS 4
470 Sets the maximum number of clients that can simultaneously connect to the server (default is 200)\&.
471 .RE
472 .PP
473 server quantum = \fInumber\fR \fB(G)\fR
474 .RS 4
475 This specifies the DSI server quantum\&. The default value is 0x100000 (1 MiB)\&. The maximum value is 0xFFFFFFFFF, the minimum is 32000\&. If you specify a value that is out of range, the default value will be set\&. Do not change this value unless you\*(Aqre absolutely sure, what you\*(Aqre doing
476 .RE
477 .PP
478 sleep time = \fInumber\fR \fB(G)\fR
479 .RS 4
480 Keep sleeping AFP sessions for
481 \fInumber\fR
482 hours before disconnecting clients in sleep mode\&. Default is 10 hours\&.
483 .RE
484 .PP
485 tcprcvbuf = \fInumber\fR \fB(G)\fR
486 .RS 4
487 Try to set TCP receive buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
488 .RE
489 .PP
490 tcpsndbuf = \fInumber\fR \fB(G)\fR
491 .RS 4
492 Try to set TCP send buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
493 .RE
494 .PP
495 recvfile = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
496 .RS 4
497 Whether to use splice() on Linux for receiving data\&.
498 .RE
499 .PP
500 splice size = \fInumber\fR (default: \fI64k\fR) \fB(G)\fR
501 .RS 4
502 Maximum number of bytes spliced\&.
503 .RE
504 .PP
505 use sendfile = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
506 .RS 4
507 Whether to use sendfile
508 syscall for sending file data to clients\&.
509 .RE
510 .PP
511 zeroconf = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
512 .RS 4
513 Whether to use automatic Zeroconf
514 service registration if Avahi or mDNSResponder were compiled in\&.
515 .RE
516 .SS "Miscellaneous Options"
517 .PP
518 admin group = \fIgroup\fR \fB(G)\fR
519 .RS 4
520 Allows users of a certain group to be seen as the superuser when they log in\&. This option is disabled by default\&.
521 .RE
522 .PP
523 afp read locks = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
524 .RS 4
525 Whether to apply locks to the byte region read in FPRead calls\&. The AFP spec mandates this, but it\*(Aqs not really in line with UNIX semantics and is a performance hug\&.
526 .RE
527 .PP
528 afpstats = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
529 .RS 4
530 Whether to provide AFP runtime statistics (connected users, open volumes) via dbus\&.
531 .RE
532 .PP
533 basedir regex = \fIregex\fR \fB(H)\fR
534 .RS 4
535 Regular expression which matches the parent directory of the user homes\&. If
536 \fBbasedir regex\fR
537 contains symlink, you must set the canonicalized absolute path\&. In the simple case this is just a path ie
538 \fBbasedir regex = /home\fR
539 .RE
540 .PP
541 chmod request = \fIpreserve (default) | ignore | simple\fR \fB(V)\fR
542 .RS 4
543 Advanced permission control that deals with ACLs\&.
544 .sp
545 .RS 4
546 .ie n \{\
547 \h'-04'\(bu\h'+03'\c
548 .\}
549 .el \{\
550 .sp -1
551 .IP \(bu 2.3
552 .\}
553
554 \fBignore\fR
555 \- UNIX chmod() requests are completely ignored
556 .RE
557 .sp
558 .RS 4
559 .ie n \{\
560 \h'-04'\(bu\h'+03'\c
561 .\}
562 .el \{\
563 .sp -1
564 .IP \(bu 2.3
565 .\}
566
567 \fBpreserve\fR
568 \- preserve ZFS ACEs for named users and groups or POSIX ACL group mask
569 .RE
570 .sp
571 .RS 4
572 .ie n \{\
573 \h'-04'\(bu\h'+03'\c
574 .\}
575 .el \{\
576 .sp -1
577 .IP \(bu 2.3
578 .\}
579
580 \fBsimple\fR
581 \- just to a chmod() as requested without any extra steps
582 .RE
583 .RE
584 .PP
585 close vol = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
586 .RS 4
587 Whether to close volumes possibly opened by clients when they\*(Aqre removed from the configuration and the configuration is reloaded\&.
588 .RE
589 .PP
590 cnid mysql host = \fIMySQL server address\fR \fB(G)\fR
591 .RS 4
592 name or address of a MySQL server for use with the mysql CNID backend\&.
593 .RE
594 .PP
595 cnid mysql user = \fIMySQL user\fR \fB(G)\fR
596 .RS 4
597 MySQL user for authentication with the server\&.
598 .RE
599 .PP
600 cnid mysql pw = \fIpassword\fR \fB(G)\fR
601 .RS 4
602 Password for MySQL server\&.
603 .RE
604 .PP
605 cnid mysql db = \fIdatabase name\fR \fB(G)\fR
606 .RS 4
607 Name of an existing database for which the specified user has full privileges\&.
608 .RE
609 .PP
610 cnid server = \fIipaddress[:port]\fR \fB(G)/(V)\fR
611 .RS 4
612 Specifies the IP address and port of a cnid_metad server, required for CNID dbd backend\&. Defaults to localhost:4700\&. The network address may be specified either in dotted\-decimal format for IPv4 or in hexadecimal format for IPv6\&.\-
613 .RE
614 .PP
615 dbus daemon = \fIpath\fR \fB(G)\fR
616 .RS 4
617 Sets the path to dbus\-daemon binary used by Spotlight feature\&. The default is
618 /bin/dbus\-daemon\&.
619 .RE
620 .PP
621 dircachesize = \fInumber\fR \fB(G)\fR
622 .RS 4
623 Maximum possible entries in the directory cache\&. The cache stores directories and files\&. It is used to cache the full path to directories and CNIDs which considerably speeds up directory enumeration\&.
624 .sp
625 Default size is 8192, maximum size is 131072\&. Given value is rounded up to nearest power of 2\&. Each entry takes about 100 bytes, which is not much, but remember that every afpd child process for every connected user has its cache\&.
626 .RE
627 .PP
628 extmap file = \fIpath\fR \fB(G)\fR
629 .RS 4
630 Sets the path to the file which defines file extension type/creator mappings\&. (default is @pkgconfdir@/extmap\&.conf)\&.
631 .RE
632 .PP
633 guest account = \fIname\fR \fB(G)\fR
634 .RS 4
635 Specifies the user that guests should use (default is "nobody")\&. The name should be quoted\&.
636 .RE
637 .PP
638 home name = \fIname\fR \fB(H)\fR
639 .RS 4
640 AFP user home volume name\&. The default is
641 \fIuser\*(Aqs home\fR\&.
642 .RE
643 .PP
644 ignored attributes = \fIall | nowrite | nodelete | norename\fR \fB(G)/(V)\fR
645 .RS 4
646 Speficy a set of file and directory attributes that shall be ignored by the server,
647 \fBall\fR
648 includes all the other options\&.
649 .sp
650 In OS X when the Finder sets a lock on a file/directory or you set the BSD uchg flag in the Terminal, all three attributes are used\&. Thus in order to ignore the Finder lock/BSD uchg flag, add set
651 \fIignored attributes = all\fR\&.
652 .RE
653 .PP
654 login message = \fImessage\fR \fB(G)/(V)\fR
655 .RS 4
656 Sets a message to be displayed when clients logon to the server\&. The message should be in
657 \fBunix charset\fR
658 and should be quoted\&. Extended characters are allowed\&.
659 .RE
660 .PP
661 mimic model = \fImodel\fR \fB(G)\fR
662 .RS 4
663 Specifies the icon model that appears on clients\&. Defaults to off\&. Note that afpd must support Zeroconf\&. Examples: RackMac (same as Xserve), PowerBook, PowerMac, Macmini, iMac, MacBook, MacBookPro, MacBookAir, MacPro, AppleTV1,1, AirPort\&.
664 .RE
665 .PP
666 signature = <text> \fB(G)\fR
667 .RS 4
668 Specify a server signature\&. The maximum length is 16 characters\&. This option is useful for clustered environments, to provide fault isolation etc\&. By default, afpd generate signature and saving it to
669 @localstatedir@/netatalk/afp_signature\&.conf
670 automatically (based on random number)\&. See also asip\-status\&.pl(1)\&.
671 .RE
672 .PP
673 solaris share reservations = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
674 .RS 4
675 Use share reservations on Solaris\&. Solaris CIFS server uses this too, so this makes a lock coherent multi protocol server\&.
676 .RE
677 .PP
678 sparql results limit = \fINUMBER\fR (default: \fIUNLIMITED\fR) \fB(G)\fR
679 .RS 4
680 Impose a limit on the number of results queried from Tracker via SPARQL queries\&.
681 .RE
682 .PP
683 spotlight = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)/(V)\fR
684 .RS 4
685 Whether to enable Spotlight searches\&. Note: once the global option is enabled, any volume that is not enabled won\*(Aqt be searchable at all\&. See also
686 \fIdbus daemon\fR
687 option\&.
688 .RE
689 .PP
690 spotlight attributes = \fICOMMA SEPERATED STRING\fR (default: \fIEMPTY\fR) \fB(G)\fR
691 .RS 4
692 A list of attributes that are allowed to be used in Spotlight searches\&. By default all attributes can be searched, passing a string limits attributes to elements of the string\&. Example:
693 .sp
694 .if n \{\
695 .RS 4
696 .\}
697 .nf
698 spotlight
699             attributes = *,kMDItemTextContent
700 .fi
701 .if n \{\
702 .RE
703 .\}
704 .sp
705 .RE
706 .PP
707 spotlight expr = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
708 .RS 4
709 Whether to allow the use of logic expression in searches\&.
710 .RE
711 .PP
712 start dbus = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
713 .RS 4
714 Whether to start a dbus instance for use with Tracker\&.
715 .RE
716 .PP
717 start tracker = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
718 .RS 4
719 Whether to start Tracker with
720 \fItracker\-control \-s\fR\&.
721 .RE
722 .PP
723 veto message = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
724 .RS 4
725 Send optional AFP messages for vetoed files\&. Then whenever a client tries to access any file or directory with a vetoed name, it will be sent an AFP message indicating the name and the directory\&.
726 .RE
727 .PP
728 vol dbpath = \fIpath\fR \fB(G)/(V)\fR
729 .RS 4
730 Sets the database information to be stored in path\&. You have to specify a writable location, even if the volume is read only\&. The default is
731 @localstatedir@/netatalk/CNID/$v/\&.
732 .RE
733 .PP
734 vol dbnest = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
735 .RS 4
736 Setting this option to true brings back Netatalk 2 behaviour of storing the CNID database in a folder called \&.AppleDB inside the volume root of each share\&.
737 .RE
738 .PP
739 volnamelen = \fInumber\fR \fB(G)\fR
740 .RS 4
741 Max length of UTF8\-MAC volume name for Mac OS X\&. Note that Hangul is especially sensitive to this\&.
742 .sp
743 .if n \{\
744 .RS 4
745 .\}
746 .nf
747  73: limit of Mac OS X 10\&.1 80: limit of Mac
748             OS X 10\&.4/10\&.5 (default) 255: limit of recent Mac OS
749             X
750 .fi
751 .if n \{\
752 .RE
753 .\}
754 .sp
755 Mac OS 9 and earlier are not influenced by this, because Maccharset volume name is always limited to 27 bytes\&.
756 .RE
757 .PP
758 vol preset = \fIname\fR \fB(G)/(V)\fR
759 .RS 4
760 Use section
761 \fBname\fR
762 as option preset for all volumes (when set in the [Global] section) or for one volume (when set in that volume\*(Aqs section)\&.
763 .RE
764 .SS "Logging Options"
765 .PP
766 log file = \fIlogfile\fR \fB(G)\fR
767 .RS 4
768 If not specified Netatalk logs to syslogs daemon facility\&. Otherwise it logs to
769 \fBlogfile\fR\&.
770 .RE
771 .PP
772 log level = \fItype:level [type:level \&.\&.\&.]\fR \fB(G)\fR, log level = \fItype:level,[type:level, \&.\&.\&.]\fR \fB(G)\fR
773 .RS 4
774 Specify that any message of a loglevel up to the given
775 \fBlog level\fR
776 should be logged\&.
777 .sp
778 By default afpd logs to syslog with a default logging setup equivalent to
779 \fBdefault:note\fR
780 .sp
781 logtypes: default, afpdaemon, logger, uamsdaemon
782 .sp
783 loglevels: severe, error, warn, note, info, debug, debug6, debug7, debug8, debug9, maxdebug
784 .if n \{\
785 .sp
786 .\}
787 .RS 4
788 .it 1 an-trap
789 .nr an-no-space-flag 1
790 .nr an-break-flag 1
791 .br
792 .ps +1
793 \fBNote\fR
794 .ps -1
795 .br
796 Both logtype and loglevels are case insensitive\&.
797 .sp .5v
798 .RE
799 .RE
800 .SS "Filesystem Change Events (FCE)"
801 .PP
802 Netatalk includes a nifty filesystem change event mechanism where afpd processes notify interested listeners about certain filesystem event by UDP network datagrams\&.
803 .PP
804 fce listener = \fIhost[:port]\fR \fB(G)\fR
805 .RS 4
806 Enables sending FCE events to the specified
807 \fIhost\fR, default
808 \fIport\fR
809 is 12250 if not specified\&. Specifying multiple listeners is done by having this option once for each of them\&.
810 .RE
811 .PP
812 fce events = \fIfmod,fdel,ddel,fcre,dcre,tmsz\fR \fB(G)\fR
813 .RS 4
814 Specifies which FCE events are active, default is
815 \fIfmod,fdel,ddel,fcre,dcre\fR\&.
816 .RE
817 .PP
818 fce coalesce = \fIall|delete|create\fR \fB(G)\fR
819 .RS 4
820 Coalesce FCE events\&.
821 .RE
822 .PP
823 fce holdfmod = \fIseconds\fR \fB(G)\fR
824 .RS 4
825 This determines the time delay in seconds which is always waited if another file modification for the same file is done by a client before sending an FCE file modification event (fmod)\&. For example saving a file in Photoshop would generate multiple events by itself because the application is opening, modifying and closing a file multiple times for every "save"\&. Default: 60 seconds\&.
826 .RE
827 .SS "Debug Parameters"
828 .PP
829 These options are useful for debugging only\&.
830 .PP
831 tickleval = \fInumber\fR \fB(G)\fR
832 .RS 4
833 Sets the tickle timeout interval (in seconds)\&. Defaults to 30\&.
834 .RE
835 .PP
836 timeout = \fInumber\fR \fB(G)\fR
837 .RS 4
838 Specify the number of tickles to send before timing out a connection\&. The default is 4, therefore a connection will timeout after 2 minutes\&.
839 .RE
840 .PP
841 client polling = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
842 .RS 4
843 With this option enabled, afpd won\*(Aqt advertise that it is capable of server notifications, so that connected clients poll the server every 10 seconds to detect changes in opened server windows\&.
844 \fINote\fR: Depending on the number of simultaneously connected clients and the network\*(Aqs speed, this can lead to a significant higher load on your network!
845 .sp
846 Do not use this option any longer as present Netatalk correctly supports server notifications, allowing connected clients to update folder listings in case another client changed the contents\&.
847 .RE
848 .SS "Options for ACL handling"
849 .PP
850 By default, the effective permission of the authenticated user are only mapped to the mentioned UARights permission structure, not the UNIX mode\&. You can adjust this behaviour with the configuration option
851 \fBmac acls\fR:
852 .PP
853 map acls = \fInone|rights|mode\fR \fB(G)\fR
854 .RS 4
855 .PP
856 none
857 .RS 4
858 no mapping of ACLs
859 .RE
860 .PP
861 rights
862 .RS 4
863 effective permissions are mapped to UARights structure\&. This is the default\&.
864 .RE
865 .PP
866 mode
867 .RS 4
868 ACLs are additionally mapped to the UNIX mode of the filesystem object\&.
869 .RE
870 .RE
871 .PP
872 If you want to be able to display ACLs on the client, you must setup both client and server as part on a authentication domain (directory service, eg LDAP, Open Directory, Active Directory)\&. The reason is, in OS X ACLs are bound to UUIDs, not just uid\*(Aqs or gid\*(Aqs\&. Therefor Netatalk must be able to map every filesystem uid and gid to a UUID so that it can return the server side ACLs which are bound to UNIX uid and gid mapped to OS X UUIDs\&.
873 .PP
874 Netatalk can query a directory server using LDAP queries\&. Either the directory server already provides an UUID attribute for user and groups (Active Directory, Open Directory) or you reuse an unused attribute (or add a new one) to you directory server (eg OpenLDAP)\&.
875 .PP
876 The following LDAP options must be configured for Netatalk:
877 .PP
878 ldap auth method = \fInone|simple|sasl\fR \fB(G)\fR
879 .RS 4
880 Authentication method:
881 \fBnone | simple | sasl\fR
882 .PP
883 none
884 .RS 4
885 anonymous LDAP bind
886 .RE
887 .PP
888 simple
889 .RS 4
890 simple LDAP bind
891 .RE
892 .PP
893 sasl
894 .RS 4
895 SASL\&. Not yet supported !
896 .RE
897 .RE
898 .PP
899 ldap auth dn = \fIdn\fR \fB(G)\fR
900 .RS 4
901 Distinguished Name of the user for simple bind\&.
902 .RE
903 .PP
904 ldap auth pw = \fIpassword\fR \fB(G)\fR
905 .RS 4
906 Distinguished Name of the user for simple bind\&.
907 .RE
908 .PP
909 ldap server = \fIhost\fR \fB(G)\fR
910 .RS 4
911 Name or IP address of your LDAP Server\&. This is only needed for explicit ACL support in order to be able to query LDAP for UUIDs\&.
912 .sp
913 You can use
914 \fBafpldaptest\fR(1)
915 to syntactically check your config\&.
916 .RE
917 .PP
918 ldap userbase = \fIbase dn\fR \fB(G)\fR
919 .RS 4
920 DN of the user container in LDAP\&.
921 .RE
922 .PP
923 ldap userscope = \fIscope\fR \fB(G)\fR
924 .RS 4
925 Search scope for user search:
926 \fBbase | one | sub\fR
927 .RE
928 .PP
929 ldap groupbase = \fIbase dn\fR \fB(G)\fR
930 .RS 4
931 DN of the group container in LDAP\&.
932 .RE
933 .PP
934 ldap groupscope = \fIscope\fR \fB(G)\fR
935 .RS 4
936 Search scope for user search:
937 \fBbase | one | sub\fR
938 .RE
939 .PP
940 ldap uuid attr = \fIdn\fR \fB(G)\fR
941 .RS 4
942 Name of the LDAP attribute with the UUIDs\&.
943 .sp
944 Note: this is used both for users and groups\&.
945 .RE
946 .PP
947 ldap name attr = \fIdn\fR \fB(G)\fR
948 .RS 4
949 Name of the LDAP attribute with the users short name\&.
950 .RE
951 .PP
952 ldap group attr = \fIdn\fR \fB(G)\fR
953 .RS 4
954 Name of the LDAP attribute with the groups short name\&.
955 .RE
956 .PP
957 ldap uuid string = \fISTRING\fR \fB(G)\fR
958 .RS 4
959 Format of the uuid string in the directory\&. A series of x and \-, where every x denotes a value 0\-9a\-f and every \- is a separator\&.
960 .sp
961 Default: xxxxxxxx\-xxxx\-xxxx\-xxxx\-xxxxxxxxxxxx
962 .RE
963 .PP
964 ldap uuid encoding = \fIstring | ms\-guid (default: string)\fR \fB(G)\fR
965 .RS 4
966 Format of the UUID of the LDAP attribute, allows usage of the binary objectGUID fields from Active Directory\&. If left unspecified, string is the default, which passes through the ASCII UUID returned by most other LDAP stores\&. If set to ms\-guid, the internal UUID representation is converted to and from the binary format used in the objectGUID attribute found on objects in Active Directory when interacting with the server\&.
967 .sp
968 See also the options
969 \fBldap user filter\fR
970 and
971 \fBldap group filter\fR\&.
972 .PP
973 string
974 .RS 4
975 UUID is a string, use with eg OpenDirectory\&.
976 .RE
977 .PP
978 ms\-guid
979 .RS 4
980 Binary objectGUID from Active Directory
981 .RE
982 .RE
983 .PP
984 ldap user filter = \fISTRING (default: unused)\fR \fB(G)\fR
985 .RS 4
986 Optional LDAP filter that matches user objects\&. This is necessary for Active Directory environments where users and groups are stored in the same directory subtree\&.
987 .sp
988 Recommended setting for Active Directory:
989 \fIobjectClass=user\fR\&.
990 .RE
991 .PP
992 ldap group filter = \fISTRING (default: unused)\fR \fB(G)\fR
993 .RS 4
994 Optional LDAP filter that matches group objects\&. This is necessary for Active Directory environments where users and groups are stored in the same directory subtree\&.
995 .sp
996 Recommended setting for Active Directory:
997 \fIobjectClass=group\fR\&.
998 .RE
999 .SH "EXPLANATION OF VOLUME PARAMETERS"
1000 .SS "Parameters"
1001 .PP
1002 The section name defines the volume name\&. No two volumes may have the same name\&. The volume name cannot contain the
1003 \*(Aq:\*(Aq
1004 character\&. The volume name is mangled if it is very long\&. Mac charset volume name is limited to 27 characters\&. UTF8\-MAC volume name is limited to volnamelen parameter\&.
1005 .PP
1006 path = \fIPATH\fR \fB(V)\fR
1007 .RS 4
1008 The path name must be a fully qualified path name\&.
1009 .RE
1010 .PP
1011 appledouble = \fIea|v2\fR \fB(V)\fR
1012 .RS 4
1013 Specify the format of the metadata files, which are used for saving Mac resource fork as well\&. Earlier versions used AppleDouble v2, the new default format is
1014 \fBea\fR\&.
1015 .RE
1016 .PP
1017 vol size limit = \fIsize in MiB\fR \fB(V)\fR
1018 .RS 4
1019 Useful for Time Machine: limits the reported volume size, thus preventing Time Machine from using the whole real disk space for backup\&. Example: "vol size limit = 1000" would limit the reported disk space to 1 GB\&.
1020 \fBIMPORTANT: \fR
1021 This is an approximated calculation taking into account the contents of Time Machine sparsebundle images\&. Therefor you MUST NOT use this volume to store other content when using this option, because it would NOT be accounted\&. The calculation works by reading the band size from the Info\&.plist XML file of the sparsebundle, reading the bands/ directory counting the number of band files, and then multiplying one with the other\&.
1022 .RE
1023 .PP
1024 valid users = \fIuser @group\fR \fB(V)\fR
1025 .RS 4
1026 The allow option allows the users and groups that access a share to be specified\&. Users and groups are specified, delimited by spaces or commas\&. Groups are designated by a @ prefix\&. Names may be quoted in order to allow for spaces in names\&. Example:
1027 .sp
1028 .if n \{\
1029 .RS 4
1030 .\}
1031 .nf
1032 valid users = user "user 2" @group \(lq@group 2"
1033 .fi
1034 .if n \{\
1035 .RE
1036 .\}
1037 .RE
1038 .PP
1039 invalid users = \fIusers/groups\fR \fB(V)\fR
1040 .RS 4
1041 The deny option specifies users and groups who are not allowed access to the share\&. It follows the same format as the "valid users" option\&.
1042 .RE
1043 .PP
1044 hosts allow = \fIIP host address/IP netmask bits [ \&.\&.\&. ]\fR \fB(V)\fR
1045 .RS 4
1046 Only listed hosts and networks are allowed, all others are rejected\&. The network address may be specified either in dotted\-decimal format for IPv4 or in hexadecimal format for IPv6\&.
1047 .sp
1048 Example: hosts allow = 10\&.1\&.0\&.0/16 10\&.2\&.1\&.100 2001:0db8:1234::/48
1049 .RE
1050 .PP
1051 hosts deny = \fIIP host address/IP netmask bits [ \&.\&.\&. ]\fR \fB(V)\fR
1052 .RS 4
1053 Listed hosts and nets are rejected, all others are allowed\&.
1054 .sp
1055 Example: hosts deny = 192\&.168\&.100/24 10\&.1\&.1\&.1 2001:db8::1428:57ab
1056 .RE
1057 .PP
1058 cnid scheme = \fIbackend\fR \fB(V)\fR
1059 .RS 4
1060 set the CNID backend to be used for the volume, default is [@DEFAULT_CNID_SCHEME@] available schemes: [@compiled_backends@]
1061 .RE
1062 .PP
1063 ea = \fInone|auto|sys|ad\fR \fB(V)\fR
1064 .RS 4
1065 Specify how Extended Attributes
1066 are stored\&.
1067 \fBauto\fR
1068 is the default\&.
1069 .PP
1070 auto
1071 .RS 4
1072 Try
1073 \fBsys\fR
1074 (by setting an EA on the shared directory itself), fallback to
1075 \fBad\fR\&. Requires writable volume for performing test\&. "\fBread only = yes\fR" overwrites
1076 \fBauto\fR
1077 with
1078 \fBnone\fR\&. Use explicit "\fBea = sys|ad\fR" for read\-only volumes where appropriate\&.
1079 .RE
1080 .PP
1081 sys
1082 .RS 4
1083 Use filesystem Extended Attributes\&.
1084 .RE
1085 .PP
1086 ad
1087 .RS 4
1088 Use files in
1089 \fI\&.AppleDouble\fR
1090 directories\&.
1091 .RE
1092 .PP
1093 none
1094 .RS 4
1095 No Extended Attributes support\&.
1096 .RE
1097 .RE
1098 .PP
1099 mac charset = \fICHARSET\fR \fB(V)\fR
1100 .RS 4
1101 specifies the Mac client charset for this Volume, e\&.g\&.
1102 \fIMAC_ROMAN\fR,
1103 \fIMAC_CYRILLIC\fR\&. If not specified the global setting is applied\&. This setting is only required if you need volumes, where the Mac charset differs from the one globally set in the [Global] section\&.
1104 .RE
1105 .PP
1106 casefold = \fBoption\fR \fB(V)\fR
1107 .RS 4
1108 The casefold option handles, if the case of filenames should be changed\&. The available options are:
1109 .sp
1110 \fBtolower\fR
1111 \- Lowercases names in both directions\&.
1112 .sp
1113 \fBtoupper\fR
1114 \- Uppercases names in both directions\&.
1115 .sp
1116 \fBxlatelower\fR
1117 \- Client sees lowercase, server sees uppercase\&.
1118 .sp
1119 \fBxlateupper\fR
1120 \- Client sees uppercase, server sees lowercase\&.
1121 .RE
1122 .PP
1123 password = \fIpassword\fR \fB(V)\fR
1124 .RS 4
1125 This option allows you to set a volume password, which can be a maximum of 8 characters long (using ASCII strongly recommended at the time of this writing)\&.
1126 .RE
1127 .PP
1128 file perm = \fImode\fR \fB(V)\fR, directory perm = \fImode\fR \fB(V)\fR
1129 .RS 4
1130 Add(or) with the client requested permissions:
1131 \fBfile perm\fR
1132 is for files only,
1133 \fBdirectory perm\fR
1134 is for directories only\&. Don\*(Aqt use with "\fBunix priv = no\fR"\&.
1135 .PP
1136 \fBExample.\ \&Volume for a collaborative workgroup\fR
1137 .sp
1138 .if n \{\
1139 .RS 4
1140 .\}
1141 .nf
1142 file perm = 0660 directory perm =
1143               0770
1144 .fi
1145 .if n \{\
1146 .RE
1147 .\}
1148
1149 .RE
1150 .PP
1151 umask = \fImode\fR \fB(V)\fR
1152 .RS 4
1153 set perm mask\&. Don\*(Aqt use with "\fBunix priv = no\fR"\&.
1154 .RE
1155 .PP
1156 preexec = \fIcommand\fR \fB(V)\fR
1157 .RS 4
1158 command to be run when the volume is mounted, ignored for user defined volumes
1159 .RE
1160 .PP
1161 postexec = \fIcommand\fR \fB(V)\fR
1162 .RS 4
1163 command to be run when the volume is closed, ignored for user defined volumes
1164 .RE
1165 .PP
1166 root preexec = \fIcommand\fR \fB(V)\fR
1167 .RS 4
1168 command to be run as root when the volume is mounted, ignored for user defined volumes
1169 .RE
1170 .PP
1171 root postexec = \fIcommand\fR \fB(V)\fR
1172 .RS 4
1173 command to be run as root when the volume is closed, ignored for user defined volumes
1174 .RE
1175 .PP
1176 rolist = \fBusers/groups\fR \fB(V)\fR
1177 .RS 4
1178 Allows certain users and groups to have read\-only access to a share\&. This follows the allow option format\&.
1179 .RE
1180 .PP
1181 rwlist = \fIusers/groups\fR \fB(V)\fR
1182 .RS 4
1183 Allows certain users and groups to have read/write access to a share\&. This follows the allow option format\&.
1184 .RE
1185 .PP
1186 veto files = \fIvetoed names\fR \fB(V)\fR
1187 .RS 4
1188 hide files and directories,where the path matches one of the \*(Aq/\*(Aq delimited vetoed names\&. The veto string must always be terminated with a \*(Aq/\*(Aq, eg\&. "veto files = veto1/", "veto files = veto1/veto2/"\&.
1189 .RE
1190 .SS "Volume options"
1191 .PP
1192 Boolean volume options\&.
1193 .PP
1194 acls = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1195 .RS 4
1196 Whether to flag volumes as supporting ACLs\&. If ACL support is compiled in, this is yes by default\&.
1197 .RE
1198 .PP
1199 cnid dev = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1200 .RS 4
1201 Whether to use the device number in the CNID backends\&. Helps when the device number is not constant across a reboot, eg cluster, \&.\&.\&.
1202 .RE
1203 .PP
1204 convert appledouble = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1205 .RS 4
1206 Whether automatic conversion from
1207 \fBappledouble = v2\fR
1208 to
1209 \fBappledouble = ea\fR
1210 is performed when accessing filesystems from clients\&. This is generally useful, but costs some performance\&. It\*(Aqs recommendable to run
1211 \fBdbd\fR
1212 on volumes and do the conversion with that\&. Then this option can be set to no\&.
1213 .RE
1214 .PP
1215 delete veto files = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1216 .RS 4
1217 This option is used when Netatalk is attempting to delete a directory that contains one or more vetoed files or directories (see the veto files option)\&. If this option is set to no (the default) then if a directory contains any non\-vetoed files or directories then the directory delete will fail\&. This is usually what you want\&.
1218 .sp
1219 If this option is set to yes, then Netatalk will attempt to recursively delete any files and directories within the vetoed directory\&.
1220 .RE
1221 .PP
1222 follow symlinks = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1223 .RS 4
1224 The default setting is false thus symlinks are not followed on the server\&. This is the same behaviour as OS X\*(Aqs AFP server\&. Setting the option to true causes afpd to follow symlinks on the server\&. symlinks may point outside of the AFP volume, currently afpd doesn\*(Aqt do any checks for "wide symlinks"\&.
1225 .if n \{\
1226 .sp
1227 .\}
1228 .RS 4
1229 .it 1 an-trap
1230 .nr an-no-space-flag 1
1231 .nr an-break-flag 1
1232 .br
1233 .ps +1
1234 \fBNote\fR
1235 .ps -1
1236 .br
1237 This option will subtly break when the symlinks point across filesystem boundaries\&.
1238 .sp .5v
1239 .RE
1240 .RE
1241 .PP
1242 invisible dots = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1243 .RS 4
1244 make dot files invisible\&. WARNING: enabling this option will lead to unwanted sideeffects were OS X applications when saving files to a temporary file starting with a dot first, then renaming the temp file to its final name, result in the saved file being invisible\&. The only thing this option is useful for is making files that start with a dot invisible on Mac OS 9\&. It\*(Aqs completely useless on Mac OS X, as both in Finder and in Terminal files starting with a dot are hidden anyway\&.
1245 .RE
1246 .PP
1247 network ids = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1248 .RS 4
1249 Whether the server support network ids\&. Setting this to
1250 \fIno\fR
1251 will result in the client not using ACL AFP functions\&.
1252 .RE
1253 .PP
1254 preexec close = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1255 .RS 4
1256 A non\-zero return code from preexec close the volume being immediately, preventing clients to mount/see the volume in question\&.
1257 .RE
1258 .PP
1259 read only = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1260 .RS 4
1261 Specifies the share as being read only for all users\&. Overwrites
1262 \fBea = auto\fR
1263 with
1264 \fBea = none\fR
1265 .RE
1266 .PP
1267 root preexec close= \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1268 .RS 4
1269 A non\-zero return code from root_preexec closes the volume immediately, preventing clients to mount/see the volume in question\&.
1270 .RE
1271 .PP
1272 search db = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1273 .RS 4
1274 Use fast CNID database namesearch instead of slow recursive filesystem search\&. Relies on a consistent CNID database, ie Samba or local filesystem access lead to inaccurate or wrong results\&. Works only for "dbd" CNID db volumes\&.
1275 .RE
1276 .PP
1277 stat vol = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1278 .RS 4
1279 Whether to stat volume path when enumerating volumes list, useful for automounting or volumes created by a preexec script\&.
1280 .RE
1281 .PP
1282 time machine = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1283 .RS 4
1284 Whether to enable Time Machine support for this volume\&.
1285 .RE
1286 .PP
1287 unix priv = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1288 .RS 4
1289 Whether to use AFP3 UNIX privileges\&. This should be set for OS X clients\&. See also:
1290 \fBfile perm\fR,
1291 \fBdirectory perm\fR
1292 and
1293 \fBumask\fR\&.
1294 .RE
1295 .SH "CNID BACKENDS"
1296 .PP
1297 The AFP protocol mostly refers to files and directories by ID and not by name\&. Netatalk needs a way to store these ID\*(Aqs in a persistent way, to achieve this several different CNID backends are available\&. The CNID Databases are by default located in the
1298 @localstatedir@/netatalk/CNID/(volumename)/\&.AppleDB/
1299 directory\&.
1300 .PP
1301 cdb
1302 .RS 4
1303 "Concurrent database", backend is based on Oracle Berkley DB\&. With this backend several
1304 \fBafpd\fR
1305 daemons access the CNID database directly\&. Berkeley DB locking is used to synchronize access, if more than one
1306 \fBafpd\fR
1307 process is active for a volume\&. The drawback is, that the crash of a single
1308 \fBafpd\fR
1309 process might corrupt the database\&.
1310 .RE
1311 .PP
1312 dbd
1313 .RS 4
1314 Access to the CNID database is restricted to the
1315 \fBcnid_metad\fR
1316 daemon process\&.
1317 \fBafpd\fR
1318 processes communicate with the daemon for database reads and updates\&. If built with Berkeley DB transactions the probability for database corruption is practically zero, but performance can be slower than with
1319 \fBcdb\fR
1320 .RE
1321 .PP
1322 last
1323 .RS 4
1324 This backend is an exception, in terms of ID persistency\&. ID\*(Aqs are only valid for the current session\&. This is basically what
1325 \fBafpd\fR
1326 did in the 1\&.5 (and 1\&.6) versions\&. This backend is still available, as it is useful for e\&.g\&. sharing cdroms\&. Starting with Netatalk 3\&.0, it becomes the
1327 \fIread only mode\fR
1328 automatically\&.
1329 .sp
1330 \fBWarning\fR: It is
1331 \fINOT\fR
1332 recommended to use this backend for volumes anymore, as
1333 \fBafpd\fR
1334 now relies heavily on a persistent ID database\&. Aliases will likely not work and filename mangling is not supported\&.
1335 .RE
1336 .PP
1337 Even though
1338 \fB\&./configure \-\-help\fR
1339 might show that there are other CNID backends available, be warned those are likely broken or mainly used for testing\&. Don\*(Aqt use them unless you know what you\*(Aqre doing, they may be removed without further notice from future versions\&.
1340 .SH "CHARSET OPTIONS"
1341 .PP
1342 With OS X Apple introduced the AFP3 protocol\&. One of the most important changes was that AFP3 uses unicode names encoded as UTF\-8 decomposed\&. Previous AFP/OS versions used codepages, like MacRoman, MacCentralEurope, etc\&.
1343 .PP
1344 \fBafpd\fR
1345 needs a way to preserve extended Macintosh characters, or characters illegal in unix filenames, when saving files on a unix filesystem\&. Earlier versions used the the so called CAP encoding\&. An extended character (>0x7F) would be converted to a :xx sequence, e\&.g\&. the Apple Logo (MacRoman: 0xF0) was saved as
1346 :f0\&. Some special characters will be converted as to :xx notation as well\&. \*(Aq/\*(Aq will be encoded to
1347 :2f, if
1348 \fBusedots\fR
1349 is not specified, a leading dot \*(Aq\&.\*(Aq will be encoded as
1350 :2e\&.
1351 .PP
1352 This version now uses UTF\-8 as the default encoding for names\&. \*(Aq/\*(Aq will be converted to \*(Aq:\*(Aq\&.
1353 .PP
1354 The
1355 \fBvol charset\fR
1356 option will allow you to select another volume encoding\&. E\&.g\&. for western users another useful setting could be vol charset ISO\-8859\-15\&.
1357 \fBafpd\fR
1358 will accept any
1359 \fBiconv\fR(1)
1360 provided charset\&. If a character cannot be converted from the
1361 \fBmac charset\fR
1362 to the selected
1363 \fBvol charset\fR, afpd will save it as a CAP encoded character\&. For AFP3 clients,
1364 \fBafpd\fR
1365 will convert the UTF\-8
1366 character to
1367 \fBmac charset\fR
1368 first\&. If this conversion fails, you\*(Aqll receive a \-50 error on the mac\&.
1369 .PP
1370 \fINote\fR: Whenever you can, please stick with the default UTF\-8 volume format\&.
1371 .SH "SEE ALSO"
1372 .PP
1373 \fBafpd\fR(8),
1374 \fBafppasswd\fR(5),
1375 \fBafp_signature.conf\fR(5),
1376 \fBextmap.conf\fR(5),
1377 \fBcnid_metad\fR(8)