]> arthur.barton.de Git - netatalk.git/blob - man/man5/afp.conf.5.tmpl
Merge branch 'autobuild-dsi' into develop
[netatalk.git] / man / man5 / afp.conf.5.tmpl
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: 19 Jan 2013
6 .\"    Manual: Netatalk 3.0
7 .\"    Source: Netatalk 3.0
8 .\"  Language: English
9 .\"
10 .TH "AFP\&.CONF" "5" "19 Jan 2013" "Netatalk 3.0" "Netatalk 3.0"
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 not supported for now\&.
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 :ETCDIR:/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 :ETCDIR:/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 listen = \fIip address[:port] [ip address[:port] \&.\&.\&.]\fR \fB(G)\fR
418 .RS 4
419 Specifies the IP address that the server should advertise
420 \fBand\fR
421 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\&.
422 .RE
423 .PP
424 afp port = \fIport number\fR \fB(G)\fR
425 .RS 4
426 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
427 \fBafp listen\fR
428 option\&.
429 .RE
430 .PP
431 cnid listen = \fIip address[:port] [ip address[:port] \&.\&.\&.]\fR \fB(G)\fR
432 .RS 4
433 Specifies the IP address that the CNID server should listen on\&. The default is
434 \fBlocalhost:4700\fR\&.
435 .RE
436 .PP
437 disconnect time = \fInumber\fR \fB(G)\fR
438 .RS 4
439 Keep disconnected AFP sessions for
440 \fInumber\fR
441 hours before dropping them\&. Default is 24 hours\&.
442 .RE
443 .PP
444 dsireadbuf = \fInumber\fR \fB(G)\fR
445 .RS 4
446 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\&.
447 \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)\&.
448 .RE
449 .PP
450 fqdn = \fIname:port\fR \fB(G)\fR
451 .RS 4
452 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\&.
453 .RE
454 .PP
455 hostname = \fIname\fR \fB(G)\fR
456 .RS 4
457 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
458 \fBafp listen\fR\&.
459 .RE
460 .PP
461 max connections = \fInumber\fR \fB(G)\fR
462 .RS 4
463 Sets the maximum number of clients that can simultaneously connect to the server (default is 200)\&.
464 .RE
465 .PP
466 server quantum = \fInumber\fR \fB(G)\fR
467 .RS 4
468 This specifies the DSI server quantum\&. The default value is 1 MB\&. 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
469 .RE
470 .PP
471 sleep time = \fInumber\fR \fB(G)\fR
472 .RS 4
473 Keep sleeping AFP sessions for
474 \fInumber\fR
475 hours before disconnecting clients in sleep mode\&. Default is 10 hours\&.
476 .RE
477 .PP
478 tcprcvbuf = \fInumber\fR \fB(G)\fR
479 .RS 4
480 Try to set TCP receive buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
481 .RE
482 .PP
483 tcpsndbuf = \fInumber\fR \fB(G)\fR
484 .RS 4
485 Try to set TCP send buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
486 .RE
487 .PP
488 use sendfile = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
489 .RS 4
490 Whether to use sendfile
491 syscall for sending file data to clients\&.
492 .RE
493 .PP
494 zeroconf = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
495 .RS 4
496 Whether to use automatic Zeroconf
497 service registration if Avahi or mDNSResponder were compiled in\&.
498 .RE
499 .SS "Miscellaneous Options"
500 .PP
501 admin group = \fIgroup\fR \fB(G)\fR
502 .RS 4
503 Allows users of a certain group to be seen as the superuser when they log in\&. This option is disabled by default\&.
504 .RE
505 .PP
506 afp read locks = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
507 .RS 4
508 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\&.
509 .RE
510 .PP
511 basedir regex = \fIregex\fR \fB(H)\fR
512 .RS 4
513 Regular expression which matches the parent directory of the user homes\&. If
514 \fBbasedir regex\fR
515 contains symlink, you must set the canonicalized absolute path\&. In the simple case this is just a path ie
516 \fBbasedir regex = /home\fR
517 .RE
518 .PP
519 close vol = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
520 .RS 4
521 Whether to close volumes possibly opened by clients when they\*(Aqre removed from the configuration and the configuration is reloaded\&.
522 .RE
523 .PP
524 cnid server = \fIipaddress[:port]\fR \fB(G)/(V)\fR
525 .RS 4
526 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\&.\-
527 .RE
528 .PP
529 dircachesize = \fInumber\fR \fB(G)\fR
530 .RS 4
531 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\&.
532 .sp
533 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\&.
534 .RE
535 .PP
536 extmap file = \fIpath\fR \fB(G)\fR
537 .RS 4
538 Sets the path to the file which defines file extension type/creator mappings\&. (default is :ETCDIR:/extmap\&.conf)\&.
539 .RE
540 .PP
541 guest account = \fIname\fR \fB(G)\fR
542 .RS 4
543 Specifies the user that guests should use (default is "nobody")\&. The name should be quoted\&.
544 .RE
545 .PP
546 home name = \fIname\fR \fB(H)\fR
547 .RS 4
548 AFP user home volume name\&. The default is
549 \fIuser\*(Aqs home\fR\&.
550 .RE
551 .PP
552 keep sessions = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
553 .RS 4
554 Enable "Continuous AFP Service"\&. This means restarting AFP and CNID service daemons master processes, but keeping the AFP session processes\&. This can be used to install (most) updates to Netatalk without interrupting active AFP sessions\&. Existing AFP sessions will still run the version from before updating, but new AFP sessions will run the updated code\&. After enabling this option when sending SIGQUIT to the
555 \fInetatalk\fR
556 service controller process, the AFP and CNID daemons will exit and then the service controller will restart them\&. AFP session processes are notified of the master afpd shutdown, they will then sleep 15\-20 seconds and then try to reconnect their IPC channel to the master afpd process\&. The IPC channel between the AFP master service daemon and the AFP session child is used for keeping session state of AFP sessions in the AFP master process\&. The session state is needed when AFP clients experience eg network outages and try to reconnect to the AFP server\&.
557 .RE
558 .PP
559 login message = \fImessage\fR \fB(G)/(V)\fR
560 .RS 4
561 Sets a message to be displayed when clients logon to the server\&. The message should be in
562 \fBunix charset\fR
563 and should be quoted\&. Extended characters are allowed\&.
564 .RE
565 .PP
566 map acls = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
567 .RS 4
568 Whether to map filesystem ACLs to effective permissions\&.
569 .RE
570 .PP
571 mimic model = \fImodel\fR \fB(G)\fR
572 .RS 4
573 Specifies the icon model that appears on clients\&. Defaults to off\&. Examples: RackMac (same as Xserve), PowerBook, PowerMac, Macmini, iMac, MacBook, MacBookPro, MacBookAir, MacPro, AppleTV1,1, AirPort\&.
574 .RE
575 .PP
576 signature = <text> \fB(G)\fR
577 .RS 4
578 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
579 :STATEDIR:/netatalk/afp_signature\&.conf
580 automatically (based on random number)\&. See also asip\-status\&.pl(1)\&.
581 .RE
582 .PP
583 solaris share reservations = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
584 .RS 4
585 Use share reservations on Solaris\&. Solaris CIFS server uses this too, so this makes a lock coherent multi protocol server\&.
586 .RE
587 .PP
588 vol dbpath = \fIpath\fR \fB(G)\fR
589 .RS 4
590 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
591 :STATEDIR:/netatalk/CNID/\&.
592 .RE
593 .PP
594 volnamelen = \fInumber\fR \fB(G)\fR
595 .RS 4
596 Max length of UTF8\-MAC volume name for Mac OS X\&. Note that Hangul is especially sensitive to this\&.
597 .sp
598 .if n \{\
599 .RS 4
600 .\}
601 .nf
602  73: limit of Mac OS X 10\&.1 80: limit of Mac
603             OS X 10\&.4/10\&.5 (default) 255: limit of recent Mac OS
604             X
605 .fi
606 .if n \{\
607 .RE
608 .\}
609 .sp
610 Mac OS 9 and earlier are not influenced by this, because Maccharset volume name is always limited to 27 bytes\&.
611 .RE
612 .PP
613 vol preset = \fIname\fR \fB(G)/(V)\fR
614 .RS 4
615 Use section
616 \fBname\fR
617 as option preset for all volumes (when set in the [Global] section) or for one volume (when set in that volume\*(Aqs section)\&.
618 .RE
619 .SS "Logging Options"
620 .PP
621 log file = \fIlogfile\fR \fB(G)\fR
622 .RS 4
623 If not specified Netatalk logs to syslogs daemon facility\&. Otherwise it logs to
624 \fBlogfile\fR\&.
625 .RE
626 .PP
627 log level = \fItype:level [type:level \&.\&.\&.]\fR \fB(G)\fR, log level = \fItype:level,[type:level, \&.\&.\&.]\fR \fB(G)\fR
628 .RS 4
629 Specify that any message of a loglevel up to the given
630 \fBlog level\fR
631 should be logged\&.
632 .sp
633 By default afpd logs to syslog with a default logging setup equivalent to
634 \fBdefault:note\fR
635 .sp
636 logtypes: default, afpdaemon, logger, uamsdaemon
637 .sp
638 loglevels: severe, error, warn, note, info, debug, debug6, debug7, debug8, debug9, maxdebug
639 .if n \{\
640 .sp
641 .\}
642 .RS 4
643 .it 1 an-trap
644 .nr an-no-space-flag 1
645 .nr an-break-flag 1
646 .br
647 .ps +1
648 \fBNote\fR
649 .ps -1
650 .br
651 Both logtype and loglevels are case insensitive\&.
652 .sp .5v
653 .RE
654 .RE
655 .SS "Filesystem Change Events (FCE)"
656 .PP
657 Netatalk includes a nifty filesystem change event mechanism where afpd processes notify interested listeners about certain filesystem event by UDP network datagrams\&.
658 .PP
659 fce listener = \fIhost[:port]\fR \fB(G)\fR
660 .RS 4
661 Enables sending FCE events to the specified
662 \fIhost\fR, default
663 \fIport\fR
664 is 12250 if not specified\&. Specifying multiple listeners is done by having this option once for each of them\&.
665 .RE
666 .PP
667 fce events = \fIfmod,fdel,ddel,fcre,dcre,tmsz\fR \fB(G)\fR
668 .RS 4
669 Specifies which FCE events are active, default is
670 \fIfmod,fdel,ddel,fcre,dcre\fR\&.
671 .RE
672 .PP
673 fce coalesce = \fIall|delete|create\fR \fB(G)\fR
674 .RS 4
675 Coalesce FCE events\&.
676 .RE
677 .PP
678 fce holdfmod = \fIseconds\fR \fB(G)\fR
679 .RS 4
680 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\&.
681 .RE
682 .SS "Debug Parameters"
683 .PP
684 These options are useful for debugging only\&.
685 .PP
686 tickleval = \fInumber\fR \fB(G)\fR
687 .RS 4
688 Sets the tickle timeout interval (in seconds)\&. Defaults to 30\&.
689 .RE
690 .PP
691 timeout = \fInumber\fR \fB(G)\fR
692 .RS 4
693 Specify the number of tickles to send before timing out a connection\&. The default is 4, therefore a connection will timeout after 2 minutes\&.
694 .RE
695 .PP
696 client polling = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
697 .RS 4
698 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\&.
699 \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!
700 .sp
701 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\&.
702 .RE
703 .SS "Options for ACL handling"
704 .PP
705 For a basic mode of operation there\*(Aqs nothing to configure\&. afpd reads ACLs on the fly, calculating effective permissions and returning the calculated permissions via the so called UARights permission bits\&. On a Mac the Finder uses these bits to adjust permission in Finder windows\&. For example folder whos UNIX mode would only result in in read\-only permissions for a user will not be displayed with a read\-only icon and the user will be able to write to the folder given the folder has an ACL giving the user write access\&.
706 .PP
707 However, neither in Finder "Get Info" windows nor in Terminal will you be able to see the ACLs, that\*(Aqs a result of how ACLs in OS X are designed\&. If you want to be able to display ACLs on the client, things get more involved as you must then setup both client and server to be part on a authentication domain (directory service, eg LDAP, OpenDirectory)\&. The reason is, that in OS X ACLs are bound to UUIDs, not just uid\*(Aqs or gid\*(Aqs\&. Therefor afpd 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\&. Get it? Read on\&.
708 .PP
709 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)\&.
710 .PP
711 The following LDAP options must be configured for Netatalk:
712 .PP
713 ldap auth method = \fInone|simple|sasl\fR \fB(G)\fR
714 .RS 4
715 Authentication method:
716 \fBnone | simple | sasl\fR
717 .PP
718 none
719 .RS 4
720 anonymous LDAP bind
721 .RE
722 .PP
723 simple
724 .RS 4
725 simple LDAP bind
726 .RE
727 .PP
728 sasl
729 .RS 4
730 SASL\&. Not yet supported !
731 .RE
732 .RE
733 .PP
734 ldap auth dn = \fIdn\fR \fB(G)\fR
735 .RS 4
736 Distinguished Name of the user for simple bind\&.
737 .RE
738 .PP
739 ldap auth pw = \fIpassword\fR \fB(G)\fR
740 .RS 4
741 Distinguished Name of the user for simple bind\&.
742 .RE
743 .PP
744 ldap server = \fIhost\fR \fB(G)\fR
745 .RS 4
746 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\&.
747 .sp
748 You can use
749 \fBafpldaptest\fR(1)
750 to syntactically check your config\&.
751 .RE
752 .PP
753 ldap userbase = \fIbase dn\fR \fB(G)\fR
754 .RS 4
755 DN of the user container in LDAP\&.
756 .RE
757 .PP
758 ldap userscope = \fIscope\fR \fB(G)\fR
759 .RS 4
760 Search scope for user search:
761 \fBbase | one | sub\fR
762 .RE
763 .PP
764 ldap groupbase = \fIbase dn\fR \fB(G)\fR
765 .RS 4
766 DN of the group container in LDAP\&.
767 .RE
768 .PP
769 ldap groupscope = \fIscope\fR \fB(G)\fR
770 .RS 4
771 Search scope for user search:
772 \fBbase | one | sub\fR
773 .RE
774 .PP
775 ldap uuid attr = \fIdn\fR \fB(G)\fR
776 .RS 4
777 Name of the LDAP attribute with the UUIDs\&.
778 .sp
779 Note: this is used both for users and groups\&.
780 .RE
781 .PP
782 ldap name attr = \fIdn\fR \fB(G)\fR
783 .RS 4
784 Name of the LDAP attribute with the users short name\&.
785 .RE
786 .PP
787 ldap uuid string = \fISTRING\fR \fB(G)\fR
788 .RS 4
789 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\&.
790 .sp
791 Default: xxxxxxxx\-xxxx\-xxxx\-xxxx\-xxxxxxxxxxxx
792 .RE
793 .PP
794 ldap uuid encoding = \fIstring | ms\-guid (default: string)\fR \fB(G)\fR
795 .RS 4
796 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\&.
797 .PP
798 string
799 .RS 4
800 UUID is a string, use with eg OpenDirectory\&.
801 .RE
802 .PP
803 ms\-guid
804 .RS 4
805 Binary objectGUID from Active Directory
806 .RE
807 .RE
808 .PP
809 ldap group attr = \fIdn\fR \fB(G)\fR
810 .RS 4
811 Name of the LDAP attribute with the groups short name\&.
812 .RE
813 .SH "EXPLANATION OF VOLUME PARAMETERS"
814 .SS "Parameters"
815 .PP
816 The section name defines the volume name which is the name that appears in the Chooser or the "connect to server" dialog on Macintoshes to represent the appropriate share\&. No two volumes may have the same name\&. The volume name cannot contain the
817 \*(Aq:\*(Aq
818 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\&.
819 .PP
820 path = \fIPATH\fR \fB(V)\fR
821 .RS 4
822 The path name must be a fully qualified path name, or a path name using either the ~ shell shorthand or any of the substitution variables, which are listed below\&.
823 .sp
824 The volume name is the name that appears in the Chooser ot the "connect to server" dialog on Macintoshes to represent the appropriate share\&. If volumename is unspecified, the last component of pathname is used\&. No two volumes may have the same name\&. If there are spaces in the name, it should be in quotes (i\&.e\&. "File Share")\&. The volume name cannot contain the
825 \*(Aq:\*(Aq
826 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\&.
827 .RE
828 .PP
829 appledouble = \fIea|v2\fR \fB(V)\fR
830 .RS 4
831 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
832 \fBea\fR\&.
833 .RE
834 .PP
835 vol size limit = \fIsize in MiB\fR \fB(V)\fR
836 .RS 4
837 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\&.
838 \fBIMPORTANT: \fR
839 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\&.
840 .RE
841 .PP
842 valid users = \fIuser @group\fR \fB(V)\fR
843 .RS 4
844 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:
845 .sp
846 .if n \{\
847 .RS 4
848 .\}
849 .nf
850 valid users = user "user 2" @group \(lq@group 2"
851 .fi
852 .if n \{\
853 .RE
854 .\}
855 .RE
856 .PP
857 invalid users = \fIusers/groups\fR \fB(V)\fR
858 .RS 4
859 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\&.
860 .RE
861 .PP
862 hosts allow = \fIIP host address/IP netmask bits [ \&.\&.\&. ]\fR \fB(V)\fR
863 .RS 4
864 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\&.
865 .sp
866 Example: hosts allow = 10\&.1\&.0\&.0/16 10\&.2\&.1\&.100 2001:0db8:1234::/48
867 .RE
868 .PP
869 hosts deny = \fIIP host address/IP netmask bits [ \&.\&.\&. ]\fR \fB(V)\fR
870 .RS 4
871 Listed hosts and nets are rejected, all others are allowed\&.
872 .sp
873 Example: hosts deny = 192\&.168\&.100/24 10\&.1\&.1\&.1 2001:db8::1428:57ab
874 .RE
875 .PP
876 cnid scheme = \fIbackend\fR \fB(V)\fR
877 .RS 4
878 set the CNID backend to be used for the volume, default is [:DEFAULT_CNID_SCHEME:] available schemes: [:COMPILED_BACKENDS:]
879 .RE
880 .PP
881 ea = \fInone|auto|sys|ad\fR
882 .RS 4
883 Specify how Extended Attributes
884 are stored\&.
885 \fBauto\fR
886 is the default\&.
887 .PP
888 auto
889 .RS 4
890 Try
891 \fBsys\fR
892 (by setting an EA on the shared directory itself), fallback to
893 \fBad\fR\&. Requires writable volume for performing test\&. "\fBread only = yes\fR" overwrites
894 \fBauto\fR
895 with
896 \fBnone\fR\&. Use explicit "\fBea = sys|ad\fR" for read\-only volumes where appropriate\&.
897 .RE
898 .PP
899 sys
900 .RS 4
901 Use filesystem Extended Attributes\&.
902 .RE
903 .PP
904 ad
905 .RS 4
906 Use files in
907 \fI\&.AppleDouble\fR
908 directories\&.
909 .RE
910 .PP
911 none
912 .RS 4
913 No Extended Attributes support\&.
914 .RE
915 .RE
916 .PP
917 mac charset = \fICHARSET\fR \fB(V)\fR
918 .RS 4
919 specifies the Mac client charset for this Volume, e\&.g\&.
920 \fIMAC_ROMAN\fR,
921 \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\&.
922 .RE
923 .PP
924 casefold = \fBoption\fR
925 .RS 4
926 The casefold option handles, if the case of filenames should be changed\&. The available options are:
927 .sp
928 \fBtolower\fR
929 \- Lowercases names in both directions\&.
930 .sp
931 \fBtoupper\fR
932 \- Uppercases names in both directions\&.
933 .sp
934 \fBxlatelower\fR
935 \- Client sees lowercase, server sees uppercase\&.
936 .sp
937 \fBxlateupper\fR
938 \- Client sees uppercase, server sees lowercase\&.
939 .RE
940 .PP
941 password = \fIpassword\fR \fB(V)\fR
942 .RS 4
943 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)\&.
944 .RE
945 .PP
946 file perm = \fImode\fR \fB(V)\fR, directory perm = \fImode\fR \fB(V)\fR
947 .RS 4
948 Add(or) with the client requested permissions:
949 \fBfile perm\fR
950 is for files only,
951 \fBdirectory perm\fR
952 is for directories only\&. Don\*(Aqt use with "\fBunix priv = no\fR"\&.
953 .PP
954 \fBExample.\ \&Volume for a collaborative workgroup\fR
955 .sp
956 .if n \{\
957 .RS 4
958 .\}
959 .nf
960 file perm = 0660 directory perm =
961                 0770
962 .fi
963 .if n \{\
964 .RE
965 .\}
966
967 .RE
968 .PP
969 umask = \fImode\fR \fB(V)\fR
970 .RS 4
971 set perm mask\&. Don\*(Aqt use with "\fBunix priv = no\fR"\&.
972 .RE
973 .PP
974 preexec = \fIcommand\fR \fB(V)\fR
975 .RS 4
976 command to be run when the volume is mounted, ignored for user defined volumes
977 .RE
978 .PP
979 postexec = \fIcommand\fR \fB(V)\fR
980 .RS 4
981 command to be run when the volume is closed, ignored for user defined volumes
982 .RE
983 .PP
984 root preexec = \fIcommand\fR \fB(V)\fR
985 .RS 4
986 command to be run as root when the volume is mounted, ignored for user defined volumes
987 .RE
988 .PP
989 root postexec = \fIcommand\fR \fB(V)\fR
990 .RS 4
991 command to be run as root when the volume is closed, ignored for user defined volumes
992 .RE
993 .PP
994 rolist = \fBusers/groups\fR \fB(V)\fR
995 .RS 4
996 Allows certain users and groups to have read\-only access to a share\&. This follows the allow option format\&.
997 .RE
998 .PP
999 rwlist = \fIusers/groups\fR \fB(V)\fR
1000 .RS 4
1001 Allows certain users and groups to have read/write access to a share\&. This follows the allow option format\&.
1002 .RE
1003 .PP
1004 veto files = \fIvetoed names\fR \fB(V)\fR
1005 .RS 4
1006 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\&. "veto1/", "veto1/veto2/"\&.
1007 .RE
1008 .SS "Volume options"
1009 .PP
1010 Boolean volume options\&.
1011 .PP
1012 acls = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1013 .RS 4
1014 Whether to flag volumes as supporting ACLs\&. If ACL support is compiled in, this is yes by default\&.
1015 .RE
1016 .PP
1017 cnid dev = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1018 .RS 4
1019 Whether to use the device number in the CNID backends\&. Helps when the device number is not constant across a reboot, eg cluster, \&.\&.\&.
1020 .RE
1021 .PP
1022 convert appledouble = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1023 .RS 4
1024 Whether automatic conversion from
1025 \fBappledouble = v2\fR
1026 to
1027 \fBappledouble = ea\fR
1028 is performed when accessing filesystems from clients\&. This is generally useful, but costs some performance\&. It\*(Aqs recommendable to run
1029 \fBdbd\fR
1030 on volumes and do the conversion with that\&. Then this option can be set to no\&.
1031 .RE
1032 .PP
1033 follow symlinks = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1034 .RS 4
1035 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"\&.
1036 .RE
1037 .PP
1038 invisible dots = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1039 .RS 4
1040 make dot files invisible\&.
1041 .RE
1042 .PP
1043 network ids = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1044 .RS 4
1045 Whether the server support network ids\&. Setting this to
1046 \fIno\fR
1047 will result in the client not using ACL AFP functions\&.
1048 .RE
1049 .PP
1050 preexec close = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1051 .RS 4
1052 A non\-zero return code from preexec close the volume being immediately, preventing clients to mount/see the volume in question\&.
1053 .RE
1054 .PP
1055 read only = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1056 .RS 4
1057 Specifies the share as being read only for all users\&. Overwrites
1058 \fBea = auto\fR
1059 with
1060 \fBea = none\fR
1061 .RE
1062 .PP
1063 root preexec close= \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1064 .RS 4
1065 A non\-zero return code from root_preexec closes the volume immediately, preventing clients to mount/see the volume in question\&.
1066 .RE
1067 .PP
1068 search db = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1069 .RS 4
1070 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\&.
1071 .RE
1072 .PP
1073 stat vol = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1074 .RS 4
1075 Whether to stat volume path when enumerating volumes list, useful for automounting or volumes created by a preexec script\&.
1076 .RE
1077 .PP
1078 time machine = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1079 .RS 4
1080 Whether to enable Time Machine support for this volume\&.
1081 .RE
1082 .PP
1083 unix priv = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1084 .RS 4
1085 Whether to use AFP3 UNIX privileges\&. This should be set for OS X clients\&. See also:
1086 \fBfile perm\fR,
1087 \fBdirectory perm\fR
1088 and
1089 \fBumask\fR\&.
1090 .RE
1091 .SH "CNID BACKENDS"
1092 .PP
1093 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
1094 :STATEDIR:/netatalk/CNID/(volumename)/\&.AppleDB/
1095 directory\&.
1096 .PP
1097 cdb
1098 .RS 4
1099 "Concurrent database", backend is based on Oracle Berkley DB\&. With this backend several
1100 \fBafpd\fR
1101 daemons access the CNID database directly\&. Berkeley DB locking is used to synchronize access, if more than one
1102 \fBafpd\fR
1103 process is active for a volume\&. The drawback is, that the crash of a single
1104 \fBafpd\fR
1105 process might corrupt the database\&.
1106 .RE
1107 .PP
1108 dbd
1109 .RS 4
1110 Access to the CNID database is restricted to the
1111 \fBcnid_metad\fR
1112 daemon process\&.
1113 \fBafpd\fR
1114 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
1115 \fBcdb\fR
1116 .RE
1117 .PP
1118 last
1119 .RS 4
1120 This backend is an exception, in terms of ID persistency\&. ID\*(Aqs are only valid for the current session\&. This is basically what
1121 \fBafpd\fR
1122 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
1123 \fIread only mode\fR
1124 automatically\&.
1125 .sp
1126 \fBWarning\fR: It is
1127 \fINOT\fR
1128 recommended to use this backend for volumes anymore, as
1129 \fBafpd\fR
1130 now relies heavily on a persistent ID database\&. Aliases will likely not work and filename mangling is not supported\&.
1131 .RE
1132 .PP
1133 Even though
1134 \fB\&./configure \-\-help\fR
1135 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\&.
1136 .SH "CHARSET OPTIONS"
1137 .PP
1138 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\&.
1139 .PP
1140 \fBafpd\fR
1141 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
1142 :f0\&. Some special characters will be converted as to :xx notation as well\&. \*(Aq/\*(Aq will be encoded to
1143 :2f, if
1144 \fBusedots\fR
1145 is not specified, a leading dot \*(Aq\&.\*(Aq will be encoded as
1146 :2e\&.
1147 .PP
1148 This version now uses UTF\-8 as the default encoding for names\&. \*(Aq/\*(Aq will be converted to \*(Aq:\*(Aq\&.
1149 .PP
1150 The
1151 \fBvol charset\fR
1152 option will allow you to select another volume encoding\&. E\&.g\&. for western users another useful setting could be vol charset ISO\-8859\-15\&.
1153 \fBafpd\fR
1154 will accept any
1155 \fBiconv\fR(1)
1156 provided charset\&. If a character cannot be converted from the
1157 \fBmac charset\fR
1158 to the selected
1159 \fBvol charset\fR, afpd will save it as a CAP encoded character\&. For AFP3 clients,
1160 \fBafpd\fR
1161 will convert the UTF\-8
1162 character to
1163 \fBmac charset\fR
1164 first\&. If this conversion fails, you\*(Aqll receive a \-50 error on the mac\&.
1165 .PP
1166 \fINote\fR: Whenever you can, please stick with the default UTF\-8 volume format\&.
1167 .SH "SEE ALSO"
1168 .PP
1169 \fBafpd\fR(8),
1170 \fBafppasswd\fR(5),
1171 \fBafp_signature.conf\fR(5),
1172 \fBextmap.conf\fR(5),
1173 \fBcnid_metad\fR(8)