]> arthur.barton.de Git - netatalk.git/blob - man/man5/afp.conf.5.tmpl
Import manpages from XML
[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.75.2 <http://docbook.sf.net/>
5 .\"      Date: 22 Mar 2012
6 .\"    Manual: Netatalk 3.0
7 .\"    Source: Netatalk 3.0
8 .\"  Language: English
9 .\"
10 .TH "AFP\&.CONF" "5" "22 Mar 2012" "Netatalk 3.0" "Netatalk 3.0"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
15 .nh
16 .\" disable justification (adjust text to left margin only)
17 .ad l
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
21 .SH "NAME"
22 afp.conf \- Netatalk configuration file
23 .SH "SYNOPSIS"
24 .PP
25 The
26 afp\&.conf
27 file is the configuration file for the
28 \fBNetatalk\fR
29 AFP file server\&.
30 .PP
31 All AFP specific configuration and AFP volume definitions are done via this file\&.
32 .SH "FILE FORMAT"
33 .PP
34 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:
35 .sp
36 .if n \{\
37 .RS 4
38 .\}
39 .nf
40 \fIname\fR = \fIvalue \fR
41       
42 .fi
43 .if n \{\
44 .RE
45 .\}
46 .PP
47 The file is line\-based \- that is, each newline\-terminated line represents either a comment, a section name or a parameter\&.
48 .PP
49 Section and parameter names are case sensitive\&.
50 .PP
51 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\&.
52 .PP
53 Any line beginning with a semicolon (\(lq;\(rq) or a hash (\(lq#\(rq) character is ignored, as are lines containing only whitespace\&.
54 .PP
55 Any line ending in a
56 \(lq\e\(rq
57 is continued on the next line in the customary UNIX fashion\&.
58 .PP
59 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\&.
60 .PP
61 The parameter
62 \fBinclude = \fR\fB\fIpath\fR\fR
63 allows you to include one config file inside another\&. The file is included literally, as though typed in place\&. Nested includes are not supported\&.
64 .SH "SECTION DESCRIPTIONS"
65 .PP
66 Each section in the configuration file (except for the [Global] section) describes a shared resource (known as a
67 \(lqvolume\(rq)\&. The section name is the name of the volume and the parameters within the section define the volume attributes and options\&.
68 .PP
69 There are two special sections, [Global] and [Homes], which are described under
70 \fIspecial sections\fR\&. The following notes apply to ordinary section descriptions\&.
71 .PP
72 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
73 \fBpath\fR
74 option must specify the directory to share\&.
75 .PP
76 Any volume section without
77 \fBpath\fR
78 option is considered a
79 \fIvol preset\fR
80 which can be selected in other volume sections via the
81 \fBvol preset\fR
82 option and constitutes defaults for the volume\&. For any option speficied both in a preset
83 \fIand\fR
84 in a volume section the volume section setting completly substitutes the preset option\&.
85 .PP
86 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\&.
87 .PP
88 The following sample section defines an AFP volume\&. The user has full access to the path
89 /foo/bar\&. The share is accessed via the share name
90 baz:
91 .sp
92 .if n \{\
93 .RS 4
94 .\}
95 .nf
96 [baz]
97 path = /foo/bar
98       
99 .fi
100 .if n \{\
101 .RE
102 .\}
103 .sp
104 .SH "SPECIAL SECTIONS"
105 .SS "The [Global] section"
106 .PP
107 Parameters in this section apply to the server as a whole\&. Parameters denoted by a (G) below are must be set in this section\&.
108 .SS "The [Homes] section"
109 .PP
110 This section enable sharing of the UNIX server user home directories\&. Specifying an optional
111 \fBpath\fR
112 parameter means that not the whole user home will be shared but the subdirectory
113 \fBpath\fR\&. It is neccessary to define the
114 \fBbasedir regex\fR
115 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
116 \fBhome name\fR
117 can be used to change the AFP volume name which
118 \fI$u\'s home\fR
119 by default\&. See below under VARIABLE SUBSTITUTIONS\&.
120 .PP
121 The following example illustrates this\&. Given all user home directories are stored under
122 /home:
123 .sp
124 .if n \{\
125 .RS 4
126 .\}
127 .nf
128 [Homes]
129 path = afp\-data
130 basedir regex = /home
131       
132 .fi
133 .if n \{\
134 .RE
135 .\}
136 .sp
137 For a user
138 \fIjohn\fR
139 this results in an AFP home volume with a path of
140 /home/john/afp\-data\&.
141 .SH "PARAMETERS"
142 .PP
143 Parameters define the specific attributes of sections\&.
144 .PP
145 Some parameters are specific to the [Global] section (e\&.g\&.,
146 \fIlog type\fR)\&. All others are permissible only in volume sections\&. The letter
147 \fIG\fR
148 in parentheses indicates that a parameter is specific to the [Global] section\&. The letter
149 \fIV\fR
150 indicates that a parameter can be specified in a volume specific section\&.
151 .SH "VARIABLE SUBSTITUTIONS"
152 .PP
153 You can use variables in volume names\&. The use of variables in paths is not supported for now\&.
154 .sp
155 .RS 4
156 .ie n \{\
157 \h'-04' 1.\h'+01'\c
158 .\}
159 .el \{\
160 .sp -1
161 .IP "  1." 4.2
162 .\}
163 if you specify an unknown variable, it will not get converted\&.
164 .RE
165 .sp
166 .RS 4
167 .ie n \{\
168 \h'-04' 2.\h'+01'\c
169 .\}
170 .el \{\
171 .sp -1
172 .IP "  2." 4.2
173 .\}
174 if you specify a known variable, but that variable doesn\'t have a value, it will get ignored\&.
175 .RE
176 .PP
177 The variables which can be used for substitutions are:
178 .PP
179 $b
180 .RS 4
181 basename
182 .RE
183 .PP
184 $c
185 .RS 4
186 client\'s ip address
187 .RE
188 .PP
189 $d
190 .RS 4
191 volume pathname on server
192 .RE
193 .PP
194 $f
195 .RS 4
196 full name (contents of the gecos field in the passwd file)
197 .RE
198 .PP
199 $g
200 .RS 4
201 group name
202 .RE
203 .PP
204 $h
205 .RS 4
206 hostname
207 .RE
208 .PP
209 $i
210 .RS 4
211 client\'s ip, without port
212 .RE
213 .PP
214 $s
215 .RS 4
216 server name (this can be the hostname)
217 .RE
218 .PP
219 $u
220 .RS 4
221 user name (if guest, it is the user that guest is running as)
222 .RE
223 .PP
224 $v
225 .RS 4
226 volume name
227 .RE
228 .PP
229 $$
230 .RS 4
231 prints dollar sign ($)
232 .RE
233 .SH "EXPLANATION OF GLOBAL PARAMETERS"
234 .SS "Authentication Options"
235 .PP
236 save password = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
237 .RS 4
238 Enables or disables the ability of clients to save passwords locally\&.
239 .RE
240 .PP
241 set password = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
242 .RS 4
243 Enables or disables the ability of clients to change their passwords via chooser or the "connect to server" dialog\&.
244 .RE
245 .PP
246 uam list = \fIuam list\fR \fB(G)\fR
247 .RS 4
248 Space or comma separated list of UAMs\&. (The default is "uams_dhx\&.so uams_dhx2\&.so")\&.
249 .sp
250 The most commonly used UAMs are:
251 .PP
252 uams_guest\&.so
253 .RS 4
254 allows guest logins
255 .RE
256 .PP
257 uams_clrtxt\&.so
258 .RS 4
259 (uams_pam\&.so or uams_passwd\&.so) Allow logins with passwords transmitted in the clear\&. (legacy)
260 .RE
261 .PP
262 uams_randum\&.so
263 .RS 4
264 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
265 \fBafppasswd\fR(1)
266 for details\&. (legacy)
267 .RE
268 .PP
269 uams_dhx\&.so
270 .RS 4
271 (uams_dhx_pam\&.so or uams_dhx_passwd\&.so) Allow Diffie\-Hellman eXchange (DHX) for authentication\&.
272 .RE
273 .PP
274 uams_dhx2\&.so
275 .RS 4
276 (uams_dhx2_pam\&.so or uams_dhx2_passwd\&.so) Allow Diffie\-Hellman eXchange 2 (DHX2) for authentication\&.
277 .RE
278 .PP
279 uam_gss\&.so
280 .RS 4
281 Allow Kerberos V for authentication (optional)
282 .RE
283 .RE
284 .PP
285 uam path = \fIpath\fR \fB(G)\fR
286 .RS 4
287 Sets the default path for UAMs for this server (default is :ETCDIR:/uams)\&.
288 .RE
289 .PP
290 k5 keytab = \fIpath\fR \fB(G)\fR, k5 service = \fIservice\fR \fB(G)\fR, k5 realm = \fIrealm\fR \fB(G)\fR
291 .RS 4
292 These are required if the server supports the Kerberos 5 authentication UAM\&.
293 .RE
294 .PP
295 nt domain = \fIDOMAIN\fR \fB(G)\fR, nt separator = \fISEPERATOR\fR \fB(G)\fR
296 .RS 4
297 Use for eg\&. winbind authentication, prepends both strings before the username from login and then tries to authenticate with the result through the availabel and active UAM authentication modules\&.
298 .RE
299 .PP
300 admin auth user = \fIuser\fR \fB(G)\fR
301 .RS 4
302 Specifying eg "\fBadmin auth user = root\fR" whenever a normal user login fails, afpd will try to authenticate as the specified
303 \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
304 \fBadmin auth user\fR, you can authenticate as any other user\&.
305 .RE
306 .PP
307 ldap server = \fIhost\fR \fB(G)\fR
308 .RS 4
309 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\&.
310 .sp
311 You can use
312 \fBafpldaptest\fR(1)
313 to syntactically check your config\&.
314 .RE
315 .PP
316 ldap auth method = \fInone|simple|sasl\fR \fB(G)\fR
317 .RS 4
318 Authentication method:
319 \fBnone | simple | sasl\fR
320 .PP
321 none
322 .RS 4
323 anonymous LDAP bind
324 .RE
325 .PP
326 simple
327 .RS 4
328 simple LDAP bind
329 .RE
330 .PP
331 sasl
332 .RS 4
333 SASL\&. Not yet supported !
334 .RE
335 .RE
336 .PP
337 ldap auth dn = \fIdn\fR \fB(G)\fR
338 .RS 4
339 Distinguished Name of the user for simple bind\&.
340 .sp
341 .RE
342 .PP
343 ldap auth pw = \fIpassword\fR \fB(G)\fR
344 .RS 4
345 Distinguished Name of the user for simple bind\&.
346 .sp
347 .RE
348 .PP
349 ldap userbase = \fIbase dn\fR \fB(G)\fR
350 .RS 4
351 DN of the user container in LDAP\&.
352 .sp
353 .RE
354 .PP
355 ldap userscope = \fIscope\fR \fB(G)\fR
356 .RS 4
357 Search scope for user search:
358 \fBbase | one | sub\fR
359 .sp
360 .RE
361 .PP
362 ldap groupbase = \fIbase dn\fR \fB(G)\fR
363 .RS 4
364 DN of the group container in LDAP\&.
365 .sp
366 .RE
367 .PP
368 ldap groupscope = \fIscope\fR \fB(G)\fR
369 .RS 4
370 Search scope for user search:
371 \fBbase | one | sub\fR
372 .sp
373 .RE
374 .PP
375 ldap uuuid attr = \fIdn\fR \fB(G)\fR
376 .RS 4
377 Name of the LDAP attribute with the UUIDs\&.
378 .sp
379 Note: this is used both for users and groups\&.
380 .sp
381 .RE
382 .PP
383 ldap name attr = \fIdn\fR \fB(G)\fR
384 .RS 4
385 Name of the LDAP attribute with the users short name\&.
386 .sp
387 .RE
388 .PP
389 ldap group attr = \fIdn\fR \fB(G)\fR
390 .RS 4
391 Name of the LDAP attribute with the groups short name\&.
392 .sp
393 .RE
394 .SS "Charset Options"
395 .PP
396 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\&.
397 .PP
398 To be able to serve AFP3 and older clients at the same time,
399 \fBafpd\fR
400 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\'s no way,
401 \fBafpd\fR
402 can detect the codepage a pre AFP3 client uses, you have to specify it using the
403 \fBmac charset\fR
404 option\&. The default is MacRoman, which should be fine for most western users\&.
405 .PP
406 As
407 \fBafpd\fR
408 needs to interact with UNIX operating system as well, it need\'s to be able to convert from UTF8\-MAC / Mac charset to the UNIX charset\&. By default
409 \fBafpd\fR
410 uses
411 \fIUTF8\fR\&. You can set the UNIX charset using the
412 \fBunix charset\fR
413 option\&. If you\'re using extended characters in the configuration files for
414 \fBafpd\fR, make sure your terminal matches the
415 \fBunix charset\fR\&.
416 .PP
417 unix charset = \fICHARSET\fR \fB(G)\fR
418 .RS 4
419 Specifies the servers unix charset, e\&.g\&.
420 \fIISO\-8859\-15\fR
421 or
422 \fIUTF8\fR\&. This is used to convert strings to/from the systems locale, e\&.g\&. for authenthication, server messages and volume names\&. Defaults to the systems locale setting\&.
423 .RE
424 .PP
425 mac charset = \fICHARSET\fR \fB(G)/(V)\fR
426 .RS 4
427 Specifies the Mac clients charset, e\&.g\&.
428 \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
429 \fBmac charset\fR\&. Defaults to
430 \fIMAC_ROMAN\fR\&.
431 .RE
432 .PP
433 vol charset = \fICHARSET\fR \fB(G)/(V)\fR
434 .RS 4
435 Specifies the encoding of the volumes filesystem, defaults to
436 \fIUTF8\fR\&.
437 .RE
438 .SS "Password Options"
439 .PP
440 passwd file = \fIpath\fR \fB(G)\fR
441 .RS 4
442 Sets the path to the Randnum UAM passwd file for this server (default is :ETCDIR:/afppasswd)\&.
443 .RE
444 .PP
445 passwd minlen = \fInumber\fR \fB(G)\fR
446 .RS 4
447 Sets the minimum password length, if supported by the UAM
448 .RE
449 .SS "Network Options"
450 .PP
451 afp listen = \fIip address[:port] [ip adress[:port] \&.\&.\&.]\fR \fB(G)\fR
452 .RS 4
453 Specifies the IP address that the server should advertise
454 \fBand\fR
455 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\&.
456 .RE
457 .PP
458 fqdn = \fIname:port\fR \fB(G)\fR
459 .RS 4
460 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\&.
461 .RE
462 .PP
463 hostname = \fIname\fR \fB(G)\fR
464 .RS 4
465 Use this instead of the result from calling hostname for dertermening which IP address to advertise, therfore the hostname is resolved to an IP which is the advertised\&. This is NOT used for listening and it is also overwritten by
466 \fBafp listen\fR\&.
467 .RE
468 .PP
469 cnid listen = \fIip address[:port] [ip adress[:port] \&.\&.\&.]\fR \fB(G)\fR
470 .RS 4
471 Specifies the IP address that the CNID server should listen on\&. The default is
472 \fBlocalhost:4700\fR\&.
473 .RE
474 .PP
475 afp port = \fIport number\fR \fB(G)\fR
476 .RS 4
477 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
478 \fBafp listen\fR
479 option\&.
480 .RE
481 .PP
482 sleep time = \fInumber\fR \fB(G)\fR
483 .RS 4
484 Keep sleeping AFP sessions for
485 \fInumber\fR
486 hours before disconnecting clients in sleep mode\&. Default is 10 hours\&.
487 .RE
488 .PP
489 disconnect time = \fInumber\fR \fB(G)\fR
490 .RS 4
491 Keep disconnected AFP sessions for
492 \fInumber\fR
493 hours before dropping them\&. Default is 24 hours\&.
494 .RE
495 .PP
496 server quantum = \fInumber\fR \fB(G)\fR
497 .RS 4
498 This specifies the DSI server quantum\&. The default value is 303840\&. 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\'re absolutely sure, what you\'re doing
499 .RE
500 .PP
501 dsireadbuf = \fInumber\fR \fB(G)\fR
502 .RS 4
503 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\&.
504 \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)\&.
505 .RE
506 .PP
507 tcprcvbuf = \fInumber\fR \fB(G)\fR
508 .RS 4
509 Try to set TCP receive buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
510 .RE
511 .PP
512 tcpsndbuf = \fInumber\fR \fB(G)\fR
513 .RS 4
514 Try to set TCP send buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
515 .RE
516 .PP
517 advertise ssh = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
518 .RS 4
519 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\'s answers to client\'s FPGetSrvrInfo requests contain an additional entry\&. It depends on both client\'s settings and a correctly configured and running
520 \fBsshd\fR(8)
521 on the server to let things work\&.
522 .if n \{\
523 .sp
524 .\}
525 .RS 4
526 .it 1 an-trap
527 .nr an-no-space-flag 1
528 .nr an-break-flag 1
529 .br
530 .ps +1
531 \fBNote\fR
532 .ps -1
533 .br
534 Setting this option is not recommended since globally encrypting AFP connections via SSH will increase the server\'s load significantly\&. On the other hand, Apple\'s client side implementation of this feature in MacOS X versions prior to 10\&.3\&.4 contained a security flaw\&.
535 .sp .5v
536 .RE
537 .RE
538 .PP
539 zeroconf = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
540 .RS 4
541 Whether to use automatic Zeroconf
542 service registration if Avahi or mDNSResponder were compiled in\&.
543 .RE
544 .PP
545 use sendfile = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
546 .RS 4
547 Whether to use sendfile
548 syscall for sending file data to clients\&.
549 .RE
550 .SS "Miscellaneous Options"
551 .PP
552 vol dbpath = \fIpath\fR \fB(G)\fR
553 .RS 4
554 Sets the database information to be stored in path\&. You have to specifiy a writable location, even if the volume is read only\&. The default is
555 $localstatedir/netatalk/CNID/, where $localstatedir defaults to
556 /var\&.
557 .RE
558 .PP
559 basedir regex = \fIregex\fR \fB(H)\fR
560 .RS 4
561 Regular expression which matches the parent directory of the user homes\&. In the simple case this is just a path ie
562 \fBbasedir regex = /home\fR
563 .RE
564 .PP
565 home name = \fIname\fR \fB(H)\fR
566 .RS 4
567 AFP user home volume name\&. The default is
568 \fIusers\'s home\fR\&.
569 .RE
570 .PP
571 vol preset = \fIname\fR \fB(G)/(V)\fR
572 .RS 4
573 Use section
574 \fBname\fR
575 as option preset for all volumes (when set in the [Global] section) or for one volume (when set in that volume\'s section)\&.
576 .RE
577 .PP
578 admin group = \fIgroup\fR \fB(G)\fR
579 .RS 4
580 Allows users of a certain group to be seen as the superuser when they log in\&. This option is disabled by default\&.
581 .RE
582 .PP
583 cnid server = \fIipaddress[:port]\fR \fB(G)/(V)\fR
584 .RS 4
585 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\&.\-
586 .RE
587 .PP
588 dircachesize = \fInumber\fR \fB(G)\fR
589 .RS 4
590 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\&.
591 .sp
592 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\&.
593 .RE
594 .PP
595 fce listener = \fIhost[:port]\fR \fB(G)\fR
596 .RS 4
597 Enables sending FCE events to the specified
598 \fIhost\fR, default
599 \fIport\fR
600 is 12250 if not specified\&. Specifying mutliple listeners is done by having this option once for each of them\&.
601 .RE
602 .PP
603 fce events = \fIfmod,fdel,ddel,fcre,dcre,tmsz\fR \fB(G)\fR
604 .RS 4
605 Speficies which FCE events are active, default is
606 \fIfmod,fdel,ddel,fcre,dcre\fR\&.
607 .RE
608 .PP
609 fce coalesce = \fIall|delete|create\fR \fB(G)\fR
610 .RS 4
611 Coalesce FCE events\&.
612 .RE
613 .PP
614 fce holdfmod = \fIseconds\fR \fB(G)\fR
615 .RS 4
616 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 mutliple times for every "save"\&. Defautl: 60 seconds\&.
617 .RE
618 .PP
619 guest account = \fIname\fR \fB(G)\fR
620 .RS 4
621 Specifies the user that guests should use (default is "nobody")\&. The name should be quoted\&.
622 .RE
623 .PP
624 login message = \fImessage\fR \fB(G)\fR
625 .RS 4
626 Sets a message to be displayed when clients logon to the server\&. The message should be in
627 \fBunix charset\fR
628 and should be quoted\&. Extended characters are allowed\&.
629 .RE
630 .PP
631 mimic model = \fImodel\fR \fB(G)\fR
632 .RS 4
633 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\&.
634 .RE
635 .PP
636 signature = <text> \fB(G)\fR
637 .RS 4
638 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
639 :ETCDIR:/afp_signature\&.conf
640 automatically (based on random number)\&. See also asip\-status\&.pl(1)\&.
641 .RE
642 .PP
643 volnamelen = \fInumber\fR \fB(G)\fR
644 .RS 4
645 Max length of UTF8\-MAC volume name for Mac OS X\&. Note that Hangul is especially sensitive to this\&.
646 .sp
647 .if n \{\
648 .RS 4
649 .\}
650 .nf
651 73:  limit of Mac OS X 10\&.1
652 80:  limit of Mac OS X 10\&.4/10\&.5 (default)
653 255: limit of recent Mac OS X
654 .fi
655 .if n \{\
656 .RE
657 .\}
658 .sp
659 Mac OS 9 and earlier are not influenced by this, because Maccharset volume name is always limitted to 27 bytes\&.
660 .RE
661 .PP
662 icon = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
663 .RS 4
664 Use the platform\-specific icon\&. Mac OS X doesn\'t display it\&.
665 .RE
666 .PP
667 keep sessions = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
668 .RS 4
669 Enable "Continuous AFP Service"\&. This means the ability to stop the master afpd process with a SIGQUIT signal, possibly install an afpd update and start the afpd process\&. Existing AFP sessions afpd processes will remain unaffected\&. Technically they will be notified of the master afpd shutdown, sleep 15\-20 seconds and then try to reconnect their IPC channel to the master afpd process\&. If this reconnect fails, the sessions are in an undefined state\&. Therefor it\'s absolutely critical to restart the master process in time!
670 .RE
671 .PP
672 map acls = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
673 .RS 4
674 Whether to map filesystem ACLs to effective permissions\&.
675 .RE
676 .PP
677 close vol = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
678 .RS 4
679 Whether to close volumes possibly opened by clients when they\'re removed from the configuration and the configuration is reloaded\&.
680 .RE
681 .SS "Logging Options"
682 .PP
683 log file = \fIlogfile\fR \fB(G)\fR
684 .RS 4
685 If not specified Netatalk logs to syslogs daemon facilify\&. Otherwise it logs to
686 \fBlogfile\fR\&.
687 .RE
688 .PP
689 log level = \fItype:level [type:level \&.\&.\&.]\fR \fB(G)\fR, log level = \fItype:level,[type:level, \&.\&.\&.]\fR \fB(G)\fR
690 .RS 4
691 Specify that any message of a loglevel up to the given
692 \fBloglevel\fR
693 should be logged\&.
694 .sp
695 By default afpd logs to syslog with a default logging setup equivalent to
696 \fBdefault:note\fR
697 .sp
698 logtypes: default, afpdaemon, logger, uamsdaemon
699 .sp
700 loglevels: severe, error, warn, note, info, debug, debug6, debug7, debug8, debug9, maxdebug
701 .if n \{\
702 .sp
703 .\}
704 .RS 4
705 .it 1 an-trap
706 .nr an-no-space-flag 1
707 .nr an-break-flag 1
708 .br
709 .ps +1
710 \fBNote\fR
711 .ps -1
712 .br
713 Both logtype and loglevels are case insensitive\&.
714 .sp .5v
715 .RE
716 .RE
717 .SS "Debug Parameters"
718 .PP
719 These options are useful for debugging only\&.
720 .PP
721 tickleval = \fInumber\fR \fB(G)\fR
722 .RS 4
723 Sets the tickle timeout interval (in seconds)\&. Defaults to 30\&.
724 .RE
725 .PP
726 timeout = \fInumber\fR \fB(G)\fR
727 .RS 4
728 Specify the number of tickles to send before timing out a connection\&. The default is 4, therefore a connection will timeout after 2 minutes\&.
729 .RE
730 .SH "EXPLANATION OF VOLUME PARAMETERS"
731 .SS "Parameters"
732 .PP
733 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
734 \':\'
735 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\&.
736 .PP
737 path = \fIPATH\fR \fB(V)\fR
738 .RS 4
739 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\&.
740 .sp
741 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
742 \':\'
743 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\&.
744 .RE
745 .PP
746 appledouble = \fIea|v2\fR \fB(V)\fR
747 .RS 4
748 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
749 \fBea\fR\&.
750 .RE
751 .PP
752 vol size limit = \fIsize in MiB\fR \fB(V)\fR
753 .RS 4
754 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\&.
755 \fBIMPORTANT: \fR
756 This is an approximated calculation taking into accout 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\&.
757 .RE
758 .PP
759 valid users = \fIusers/groups\fR \fB(V)\fR
760 .RS 4
761 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\&. Example: "valid users = user1 user2 @group"
762 .RE
763 .PP
764 invalid users = \fIusers/groups\fR \fB(V)\fR
765 .RS 4
766 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\&.
767 .RE
768 .PP
769 hosts allow = \fIIP host address/IP netmask bits[, \&.\&.\&. ]\fR \fB(V)\fR
770 .RS 4
771 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\&.
772 .sp
773 Example: hosts allow = 10\&.1\&.0\&.0/16 10\&.2\&.1\&.100 2001:0db8:1234::/48
774 .RE
775 .PP
776 hosts deny = \fIIP host address/IP netmask bits [\&.\&.\&.]\fR \fB(V)\fR
777 .RS 4
778 Listed hosts and nets are rejected, all others are allowed\&.
779 .sp
780 Example: hosts deny = 192\&.168\&.100/24 10\&.1\&.1\&.1 2001:db8::1428:57ab
781 .RE
782 .PP
783 cnid scheme = \fIbackend\fR \fB(V)\fR
784 .RS 4
785 set the CNID backend to be used for the volume, default is [:DEFAULT_CNID_SCHEME:] available schemes: [:COMPILED_BACKENDS:]
786 .RE
787 .PP
788 ea = \fInone|auto|sys|ad\fR
789 .RS 4
790 Specify how Extended Attributes
791 are stored\&.
792 \fBauto\fR
793 is the default\&.
794 .PP
795 auto
796 .RS 4
797 Try
798 \fBsys\fR
799 (by setting an EA on the shared directory itself), fallback to
800 \fBad\fR\&. Requires writeable volume for perfoming test\&. "\fBread only = yes\fR" overwrites
801 \fBauto\fR
802 with
803 \fBnone\fR\&. Use explicit "\fBea = sys|ad\fR" for read\-only volumes where appropiate\&.
804 .RE
805 .PP
806 sys
807 .RS 4
808 Use filesystem Extended Attributes\&.
809 .RE
810 .PP
811 ad
812 .RS 4
813 Use files in
814 \fI\&.AppleDouble\fR
815 directories\&.
816 .RE
817 .PP
818 none
819 .RS 4
820 No Extended Attributes support\&.
821 .RE
822 .RE
823 .PP
824 mac charset = \fICHARSET\fR \fB(V)\fR
825 .RS 4
826 specifies the Mac client charset for this Volume, e\&.g\&.
827 \fIMAC_ROMAN\fR,
828 \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\&.
829 .RE
830 .PP
831 casefold = \fBoption\fR
832 .RS 4
833 The casefold option handles, if the case of filenames should be changed\&. The available options are:
834 .sp
835 \fBtolower\fR
836 \- Lowercases names in both directions\&.
837 .sp
838 \fBtoupper\fR
839 \- Uppercases names in both directions\&.
840 .sp
841 \fBxlatelower\fR
842 \- Client sees lowercase, server sees uppercase\&.
843 .sp
844 \fBxlateupper\fR
845 \- Client sees uppercase, server sees lowercase\&.
846 .RE
847 .PP
848 password = \fIpassword\fR \fB(V)\fR
849 .RS 4
850 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)\&.
851 .RE
852 .PP
853 file perm = \fImode\fR \fB(V)\fR, directory perm = \fImode\fR \fB(V)\fR
854 .RS 4
855 Add(or) with the client requested permissions:
856 \fBfile perm\fR
857 is for files only,
858 \fBdirectory perm\fR
859 is for directories only\&. Don\'t use with "\fBunix priv = no\fR"\&.
860 .PP
861 \fBExample.\ \&Volume for a collaborative workgroup\fR
862 .sp
863 .if n \{\
864 .RS 4
865 .\}
866 .nf
867 file perm = 0660
868 directory perm = 0770
869 .fi
870 .if n \{\
871 .RE
872 .\}
873
874 .RE
875 .PP
876 umask = \fImode\fR \fB(V)\fR
877 .RS 4
878 set perm mask\&. Don\'t use with "\fBunix priv = no\fR"\&.
879 .RE
880 .PP
881 preexec = \fIcommand\fR \fB(V)\fR
882 .RS 4
883 command to be run when the volume is mounted, ignored for user defined volumes
884 .RE
885 .PP
886 postexec = \fIcommand\fR \fB(V)\fR
887 .RS 4
888 command to be run when the volume is closed, ignored for user defined volumes
889 .RE
890 .PP
891 root preexec = \fIcommand\fR \fB(V)\fR
892 .RS 4
893 command to be run as root when the volume is mounted, ignored for user defined volumes
894 .RE
895 .PP
896 root postexec = \fIcommand\fR \fB(V)\fR
897 .RS 4
898 command to be run as root when the volume is closed, ignored for user defined volumes
899 .RE
900 .PP
901 rolist = \fBusers/groups\fR \fB(V)\fR
902 .RS 4
903 Allows certain users and groups to have read\-only access to a share\&. This follows the allow option format\&.
904 .RE
905 .PP
906 rwlist = \fIusers/groups\fR \fB(V)\fR
907 .RS 4
908 Allows certain users and groups to have read/write access to a share\&. This follows the allow option format\&.
909 .RE
910 .PP
911 veto files = \fIvetoed names\fR \fB(V)\fR
912 .RS 4
913 hide files and directories,where the path matches one of the \'/\' delimited vetoed names\&. The veto string must always be terminated with a \'/\', eg\&. "veto1/", "veto1/veto2/"\&.
914 .RE
915 .SS "Volume options"
916 .PP
917 Boolean volume options\&.
918 .PP
919 acls = \fIBOOLEAN\fR (default: \fItrue\fR) \fB(V)\fR
920 .RS 4
921 Whether to flag volumes as supporting ACLs\&. If ACL support is compiled in, this is true by default\&.
922 .RE
923 .PP
924 cnid dev = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
925 .RS 4
926 Whether to use the device number in the CNID backends\&. Helps when the device number is not constant across a reboot, eg cluster, \&.\&.\&.
927 .RE
928 .PP
929 convert adouble = \fIBOOLEAN\fR (default: \fItrue\fR) \fB(V)\fR
930 .RS 4
931 Whether automatic conversion from
932 \fBappledouble = v2\fR
933 to
934 \fBappledouble = ea\fR
935 is performed when accessing filesystems from clients\&. This is generally useful, but costs some performance\&. It\'s recommdable to run
936 \fBdbd\fR
937 on volumes and do the conversion with that\&. Then this option can be set to no\&.
938 .RE
939 .PP
940 hex encoding = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
941 .RS 4
942 Whether :hex encoding is done for file and directory names containing the character
943 /\&. Setting this option to no makes the
944 /
945 character illegal\&.
946 .RE
947 .PP
948 invisible dots = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
949 .RS 4
950 make dot files invisible\&. If "\fBuse dots = no\fR", this parameter is not unnecessary\&.
951 .RE
952 .PP
953 network ids = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
954 .RS 4
955 Whether the server support network ids\&. Setting this to
956 \fIno\fR
957 will result in the client not using ACL AFP functions\&.
958 .RE
959 .PP
960 preexec close = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
961 .RS 4
962 A non\-zero return code from preexec close the volume being immediately, preventing clients to mount/see the volume in question\&.
963 .RE
964 .PP
965 read only = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
966 .RS 4
967 Specifies the share as being read only for all users\&. Overwrites
968 \fBea = auto\fR
969 with
970 \fBea = none\fR
971 .RE
972 .PP
973 root preexec close= \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
974 .RS 4
975 A non\-zero return code from root_preexec closes the volume immediately, preventing clients to mount/see the volume in question\&.
976 .RE
977 .PP
978 search db = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
979 .RS 4
980 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\&.
981 .RE
982 .PP
983 stat vol = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
984 .RS 4
985 Whether to stat volume path when enumerating volumes list, useful for automounting or volumes created by a preexec script\&.
986 .RE
987 .PP
988 time machine = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
989 .RS 4
990 Whether to enable Time Machine suport for this volume\&.
991 .RE
992 .PP
993 unix priv = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
994 .RS 4
995 Whether to use AFP3 UNIX privileges\&. This should be set for OS X clients\&. See also:
996 \fBfile perm\fR,
997 \fBdirectory perm\fR
998 and
999 \fBumask\fR\&.
1000 .RE
1001 .PP
1002 use dots = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1003 .RS 4
1004 Whether to do :hex translation for dot files\&. See also
1005 \fBinvisible dots\fR\&.
1006 .RE
1007 .SH "CNID BACKENDS"
1008 .PP
1009 The AFP protocol mostly refers to files and directories by ID and not by name\&. Netatalk needs a way to store these ID\'s in a persistent way, to achieve this several different CNID backends are available\&. The CNID Databases are by default located in the
1010 \&.AppleDB
1011 folder in the volume root\&.
1012 .PP
1013 cdb
1014 .RS 4
1015 "Concurrent database", backend is based on Sleepycat\'s Berkely DB\&. With this backend several
1016 \fBafpd\fR
1017 deamons access the CNID database directly\&. Berkeley DB locking is used to synchronize access, if more than one
1018 \fBafpd\fR
1019 process is active for a volume\&. The drawback is, that the crash of a single
1020 \fBafpd\fR
1021 process might corrupt the database\&.
1022 .RE
1023 .PP
1024 dbd
1025 .RS 4
1026 Access to the CNID database is restricted to the
1027 \fBcnid_metad\fR
1028 daemon process\&.
1029 \fBafpd\fR
1030 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
1031 \fBcdb\fR
1032 .RE
1033 .PP
1034 last
1035 .RS 4
1036 This backend is an exception, in terms of ID persistency\&. ID\'s are only valid for the current session\&. This is basically what
1037 \fBafpd\fR
1038 did in the 1\&.5 (and 1\&.6) versions\&. This backend is still available, as it is useful for e\&.g\&. sharing cdroms\&.
1039 .sp
1040 \fBWarning\fR: It is
1041 \fINOT\fR
1042 recommended to use this backend for volumes anymore, as
1043 \fBafpd\fR
1044 now relies heavily on a persistent ID database\&. Aliases will likely not work and filename mangling is not supported\&.
1045 .RE
1046 .PP
1047 Even though
1048 \fB\&./configure \-\-help\fR
1049 might show that there are other CNID backends available, be warned those are likely broken or mainly used for testing\&. Don\'t use them unless you know what you\'re doing, they may be removed without further notice from future versions\&.
1050 .SH "CHARSET OPTIONS"
1051 .PP
1052 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\&.
1053 .PP
1054 \fBafpd\fR
1055 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
1056 :f0\&. Some special characters will be converted as to :xx notation as well\&. \'/\' will be encoded to
1057 :2f, if
1058 \fBusedots\fR
1059 is not specified, a leading dot \'\&.\' will be encoded as
1060 :2e\&.
1061 .PP
1062 This version now uses UTF\-8 as the default encoding for names\&. Special characters, like \'/\' and a leading \'\&.\' will still be CAP style encoded \&.
1063 .PP
1064 The
1065 \fBvol charset\fR
1066 option will allow you to select another volume encoding\&. E\&.g\&. for western users another useful setting could be volcharset ISO\-8859\-15\&.
1067 \fBapfd\fR
1068 will accept any
1069 \fBiconv\fR(1)
1070 provided charset\&. If a character cannot be converted from the mac codepage to the selected volcharset, afpd will save it as a CAP encoded character\&. For AFP3 clients,
1071 \fBafpd\fR
1072 will convert the UTF\-8
1073 character to
1074 \fBmac charset\fR
1075 first\&. If this conversion fails, you\'ll receive a \-50 error on the mac\&.
1076 .PP
1077 \fINote\fR: Whenever you can, please stick with the default UTF\-8 volume format\&.
1078 .SH "SEE ALSO"
1079 .PP
1080 \fBafpd\fR(8),
1081 \fBafppasswd\fR(5),
1082 \fBafp_signature.conf\fR(5),
1083 \fBcnid_metad\fR(8)