]> arthur.barton.de Git - netatalk.git/blob - man/man5/afp.conf.5.tmpl
Convert server and volume options to boolean style
[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: 19 Mar 2012
6 .\"    Manual: Netatalk 3.0
7 .\"    Source: Netatalk 3.0
8 .\"  Language: English
9 .\"
10 .TH "AFP\&.CONF" "5" "19 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 \fIlogtype\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
265 \fB\-passwdfile\fR\&. See
266 \fBafppasswd\fR(1)
267 for details\&. (legacy)
268 .RE
269 .PP
270 uams_dhx\&.so
271 .RS 4
272 (uams_dhx_pam\&.so or uams_dhx_passwd\&.so) Allow Diffie\-Hellman eXchange (DHX) for authentication\&.
273 .RE
274 .PP
275 uams_dhx2\&.so
276 .RS 4
277 (uams_dhx2_pam\&.so or uams_dhx2_passwd\&.so) Allow Diffie\-Hellman eXchange 2 (DHX2) for authentication\&.
278 .RE
279 .PP
280 uam_gss\&.so
281 .RS 4
282 Allow Kerberos V for authentication (optional)
283 .RE
284 .RE
285 .PP
286 uam path = \fIpath\fR \fB(G)\fR
287 .RS 4
288 Sets the default path for UAMs for this server (default is :ETCDIR:/uams)\&.
289 .RE
290 .PP
291 k5 keytab = \fIpath\fR \fB(G)\fR, k5 service = \fIservice\fR \fB(G)\fR, k5 realm = \fIrealm\fR \fB(G)\fR
292 .RS 4
293 These are required if the server supports the Kerberos 5 authentication UAM\&.
294 .RE
295 .PP
296 nt domain = \fIDOMAIN\fR \fB(G)\fR, nt separator = \fISEPERATOR\fR \fB(G)\fR
297 .RS 4
298 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\&.
299 .RE
300 .PP
301 admin auth user = \fIuser\fR \fB(G)\fR
302 .RS 4
303 Specifying eg "\fBadmin auth user = root\fR" whenever a normal user login fails, afpd will try to authenticate as the specified
304 \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
305 \fBadmin auth user\fR, you can authenticate as any other user\&.
306 .RE
307 .PP
308 ldap server = \fIhost\fR \fB(G)\fR
309 .RS 4
310 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\&.
311 .sp
312 You can use
313 \fBafpldaptest\fR(1)
314 to syntactically check your config\&.
315 .RE
316 .PP
317 ldap auth method = \fInone|simple|sasl\fR \fB(G)\fR
318 .RS 4
319 Authentication method:
320 \fBnone | simple | sasl\fR
321 .PP
322 none
323 .RS 4
324 anonymous LDAP bind
325 .RE
326 .PP
327 simple
328 .RS 4
329 simple LDAP bind
330 .RE
331 .PP
332 sasl
333 .RS 4
334 SASL\&. Not yet supported !
335 .RE
336 .RE
337 .PP
338 ldap auth dn = \fIdn\fR \fB(G)\fR
339 .RS 4
340 Distinguished Name of the user for simple bind\&.
341 .sp
342 .RE
343 .PP
344 ldap auth pw = \fIpassword\fR \fB(G)\fR
345 .RS 4
346 Distinguished Name of the user for simple bind\&.
347 .sp
348 .RE
349 .PP
350 ldap userbase = \fIbase dn\fR \fB(G)\fR
351 .RS 4
352 DN of the user container in LDAP\&.
353 .sp
354 .RE
355 .PP
356 ldap userscope = \fIscope\fR \fB(G)\fR
357 .RS 4
358 Search scope for user search:
359 \fBbase | one | sub\fR
360 .sp
361 .RE
362 .PP
363 ldap groupbase = \fIbase dn\fR \fB(G)\fR
364 .RS 4
365 DN of the group container in LDAP\&.
366 .sp
367 .RE
368 .PP
369 ldap groupscope = \fIscope\fR \fB(G)\fR
370 .RS 4
371 Search scope for user search:
372 \fBbase | one | sub\fR
373 .sp
374 .RE
375 .PP
376 ldap uuuid attr = \fIdn\fR \fB(G)\fR
377 .RS 4
378 Name of the LDAP attribute with the UUIDs\&.
379 .sp
380 Note: this is used both for users and groups\&.
381 .sp
382 .RE
383 .PP
384 ldap name attr = \fIdn\fR \fB(G)\fR
385 .RS 4
386 Name of the LDAP attribute with the users short name\&.
387 .sp
388 .RE
389 .PP
390 ldap group attr = \fIdn\fR \fB(G)\fR
391 .RS 4
392 Name of the LDAP attribute with the groups short name\&.
393 .sp
394 .RE
395 .SS "Charset Options"
396 .PP
397 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\&.
398 .PP
399 To be able to serve AFP3 and older clients at the same time,
400 \fBafpd\fR
401 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,
402 \fBafpd\fR
403 can detect the codepage a pre AFP3 client uses, you have to specify it using the
404 \fBmac charset\fR
405 option\&. The default is MacRoman, which should be fine for most western users\&.
406 .PP
407 As
408 \fBafpd\fR
409 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
410 \fBafpd\fR
411 uses
412 \fIUTF8\fR\&. You can set the UNIX charset using the
413 \fBunix charset\fR
414 option\&. If you\'re using extended characters in the configuration files for
415 \fBafpd\fR, make sure your terminal matches the
416 \fBunix charset\fR\&.
417 .PP
418 unix charset = \fICHARSET\fR \fB(G)\fR
419 .RS 4
420 Specifies the servers unix charset, e\&.g\&.
421 \fIISO\-8859\-15\fR
422 or
423 \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\&.
424 .RE
425 .PP
426 mac charset = \fICHARSET\fR \fB(G)/(V)\fR
427 .RS 4
428 Specifies the Mac clients charset, e\&.g\&.
429 \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
430 \fBmac charset\fR\&. Defaults to
431 \fIMAC_ROMAN\fR\&.
432 .RE
433 .PP
434 vol charset = \fICHARSET\fR \fB(G)/(V)\fR
435 .RS 4
436 Specifies the encoding of the volumes filesystem, defaults to
437 \fIUTF8\fR\&.
438 .RE
439 .SS "Password Options"
440 .PP
441 passwd file = \fIpath\fR \fB(G)\fR
442 .RS 4
443 Sets the path to the Randnum UAM passwd file for this server (default is :ETCDIR:/afppasswd)\&.
444 .RE
445 .PP
446 passwd minlen = \fInumber\fR \fB(G)\fR
447 .RS 4
448 Sets the minimum password length, if supported by the UAM
449 .RE
450 .SS "Network Options"
451 .PP
452 afp listen = \fIip address[:port] [ip adress[:port] \&.\&.\&.]\fR \fB(G)\fR
453 .RS 4
454 Specifies the IP address that the server should advertise
455 \fBand\fR
456 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\&.
457 .RE
458 .PP
459 fqdn = \fIname:port\fR \fB(G)\fR
460 .RS 4
461 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\&.
462 .RE
463 .PP
464 hostname = \fIname\fR \fB(G)\fR
465 .RS 4
466 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
467 \fBafp listen\fR\&.
468 .RE
469 .PP
470 cnid listen = \fIip address[:port] [ip adress[:port] \&.\&.\&.]\fR \fB(G)\fR
471 .RS 4
472 Specifies the IP address that the CNID server should listen on\&. The default is
473 \fBlocalhost:4700\fR\&.
474 .RE
475 .PP
476 afp port = \fIport number\fR \fB(G)\fR
477 .RS 4
478 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
479 \fBafp listen\fR
480 option\&.
481 .RE
482 .PP
483 sleep time = \fInumber\fR \fB(G)\fR
484 .RS 4
485 Keep sleeping AFP sessions for
486 \fInumber\fR
487 hours before disconnecting clients in sleep mode\&. Default is 10 hours\&.
488 .RE
489 .PP
490 disconnect time = \fInumber\fR \fB(G)\fR
491 .RS 4
492 Keep disconnected AFP sessions for
493 \fInumber\fR
494 hours before dropping them\&. Default is 24 hours\&.
495 .RE
496 .PP
497 server quantum = \fInumber\fR \fB(G)\fR
498 .RS 4
499 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
500 .RE
501 .PP
502 dsireadbuf = \fInumber\fR \fB(G)\fR
503 .RS 4
504 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\&.
505 \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)\&.
506 .RE
507 .PP
508 tcprcvbuf = \fInumber\fR \fB(G)\fR
509 .RS 4
510 Try to set TCP receive buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
511 .RE
512 .PP
513 tcpsndbuf = \fInumber\fR \fB(G)\fR
514 .RS 4
515 Try to set TCP send buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
516 .RE
517 .PP
518 advertise ssh = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
519 .RS 4
520 Allows 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
521 \fBsshd\fR(8)
522 on the server to let things work\&.
523 .if n \{\
524 .sp
525 .\}
526 .RS 4
527 .it 1 an-trap
528 .nr an-no-space-flag 1
529 .nr an-break-flag 1
530 .br
531 .ps +1
532 \fBNote\fR
533 .ps -1
534 .br
535 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\&.
536 .sp .5v
537 .RE
538 .RE
539 .PP
540 zeroconf = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
541 .RS 4
542 Whether to use automatic Zeroconf
543 service registration if support was compiled in\&.
544 .RE
545 .PP
546 use sendfile = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
547 .RS 4
548 Whether to use sendfile
549 syscall for sending file data to clients\&.
550 .RE
551 .SS "Miscellaneous Options"
552 .PP
553 vol dbpath = \fIpath\fR \fB(G)\fR
554 .RS 4
555 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
556 $localstatedir/netatalk/CNID/, where $localstatedir defaults to
557 /var\&.
558 .RE
559 .PP
560 basedir regex = \fIregex\fR \fB(H)\fR
561 .RS 4
562 Regular expression which matches the parent directory of the user homes\&. In the simple case this is just a path ie
563 \fBbasedir regex = /home\fR
564 .RE
565 .PP
566 home name = \fIname\fR \fB(H)\fR
567 .RS 4
568 AFP user home volume name\&. The default is
569 \fIusers\'s home\fR\&.
570 .RE
571 .PP
572 vol preset = \fIname\fR \fB(G)/(V)\fR
573 .RS 4
574 Use section
575 \fBname\fR
576 as option preset for all volumes (when set in the global section) or for one volume (when set in that volume\'s section)\&.
577 .RE
578 .PP
579 admin group = \fIgroup\fR \fB(G)\fR
580 .RS 4
581 Allows users of a certain group to be seen as the superuser when they log in\&. This option is disabled by default\&.
582 .RE
583 .PP
584 cnid server = \fIipaddress[:port]\fR \fB(G)/(V)\fR
585 .RS 4
586 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\&.\-
587 .RE
588 .PP
589 dircachesize = \fInumber\fR \fB(G)\fR
590 .RS 4
591 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\&.
592 .sp
593 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\&.
594 .RE
595 .PP
596 fce listener = \fIhost[:port]\fR \fB(G)\fR
597 .RS 4
598 Enables sending FCE events to the specified
599 \fIhost\fR, default
600 \fIport\fR
601 is 12250 if not specified\&. Specifying mutliple listeners is done by having this option once for each of them\&.
602 .RE
603 .PP
604 fce events = \fIfmod,fdel,ddel,fcre,dcre,tmsz\fR \fB(G)\fR
605 .RS 4
606 Speficies which FCE events are active, default is
607 \fIfmod,fdel,ddel,fcre,dcre\fR\&.
608 .RE
609 .PP
610 fce coalesce = \fIall|delete|create\fR \fB(G)\fR
611 .RS 4
612 Coalesce FCE events\&.
613 .RE
614 .PP
615 fce holdfmod = \fIseconds\fR \fB(G)\fR
616 .RS 4
617 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\&.
618 .RE
619 .PP
620 guest account = \fIname\fR \fB(G)\fR
621 .RS 4
622 Specifies the user that guests should use (default is "nobody")\&. The name should be quoted\&.
623 .RE
624 .PP
625 login message = \fImessage\fR \fB(G)\fR
626 .RS 4
627 Sets a message to be displayed when clients logon to the server\&. The message should be in
628 \fBunix charset\fR
629 and should be quoted\&. Extended characters are allowed\&.
630 .RE
631 .PP
632 mimic model = \fImodel\fR \fB(G)\fR
633 .RS 4
634 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\&.
635 .RE
636 .PP
637 signature = { user:<text> | auto } \fB(G)\fR
638 .RS 4
639 Specify a server signature\&. This option is useful while running multiple independent instances of afpd on one machine (eg\&. in clustered environments, to provide fault isolation etc\&.)\&. Default is "auto"\&. "auto" signature type allows afpd generating signature and saving it to
640 :ETCDIR:/afp_signature\&.conf
641 automatically (based on random number)\&. "host" signature type switches back to "auto" because it is obsoleted\&. "user" signature type allows administrator to set up a signature string manually\&. The maximum length is 16 characters\&.
642 .PP
643 \fBExample.\ \&Three server definitions using 2 different server signatures\fR
644 .sp
645 .if n \{\
646 .RS 4
647 .\}
648 .nf
649 first \-signature user:USERS
650                   second \-signature user:USERS
651                   third \-signature user:ADMINS
652 .fi
653 .if n \{\
654 .RE
655 .\}
656
657
658 First two servers will appear as one logical AFP service to the clients \- if user logs in to first one and then connects to second one, session will be automatically redirected to the first one\&. But if client connects to first and then to third, will be asked for password twice and will see resources of both servers\&. Traditional method of signature generation causes two independent afpd instances to have the same signature and thus cause clients to be redirected automatically to server (s)he logged in first\&.
659 .RE
660 .PP
661 volnamelen = \fInumber\fR \fB(G)\fR
662 .RS 4
663 Max length of UTF8\-MAC volume name for Mac OS X\&. Note that Hangul is especially sensitive to this\&.
664 .sp
665 .if n \{\
666 .RS 4
667 .\}
668 .nf
669 73:  limit of Mac OS X 10\&.1
670                 80:  limit for Mac OS X 10\&.4/10\&.5 (default)
671                 255: limit of spec
672 .fi
673 .if n \{\
674 .RE
675 .\}
676 .sp
677 Mac OS 9 and earlier are not influenced by this, because Maccharset volume name is always limitted to 27 bytes\&.
678 .RE
679 .PP
680 icon = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
681 .RS 4
682 Use the platform\-specific icon\&. Mac OS X doesn\'t display it\&.
683 .RE
684 .PP
685 keep sessions = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
686 .RS 4
687 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!
688 .RE
689 .PP
690 map acls = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
691 .RS 4
692 Whether to map filesystem ACLs to effective permissions\&.
693 .RE
694 .PP
695 close vol = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
696 .RS 4
697 Whether to close volumes possibly opened by clients when they\'re removed from the configuration and the configuration is reloaded\&.
698 .RE
699 .SS "Logging Options"
700 .PP
701 log file = \fIlogfile\fR \fB(G)\fR
702 .RS 4
703 If not specified Netatalk logs to syslogs daemon facilify\&. Otherwise it logs to
704 \fBlogfile\fR\&.
705 .RE
706 .PP
707 log level = \fItype:level [type:level \&.\&.\&.]\fR \fB(G)\fR, log level = \fItype:level,[type:level, \&.\&.\&.]\fR \fB(G)\fR
708 .RS 4
709 Specify that any message of a loglevel up to the given
710 \fBloglevel\fR
711 should be logged\&.
712 .sp
713 By default afpd logs to syslog with a default logging setup equivalent to
714 \fBdefault:note\fR
715 .sp
716 logtypes: default, afpdaemon, logger, uamsdaemon
717 .sp
718 loglevels: severe, error, warn, note, info, debug, debug6, debug7, debug8, debug9, maxdebug
719 .if n \{\
720 .sp
721 .\}
722 .RS 4
723 .it 1 an-trap
724 .nr an-no-space-flag 1
725 .nr an-break-flag 1
726 .br
727 .ps +1
728 \fBNote\fR
729 .ps -1
730 .br
731 Both logtype and loglevels are case insensitive\&.
732 .sp .5v
733 .RE
734 .RE
735 .SS "Debug Parameters"
736 .PP
737 These options are useful for debugging only\&.
738 .PP
739 tickleval = \fInumber\fR \fB(G)\fR
740 .RS 4
741 Sets the tickle timeout interval (in seconds)\&. Defaults to 30\&.
742 .RE
743 .PP
744 timeout = \fInumber\fR \fB(G)\fR
745 .RS 4
746 Specify the number of tickles to send before timing out a connection\&. The default is 4, therefore a connection will timeout after 2 minutes\&.
747 .RE
748 .SH "EXPLANATION OF VOLUME PARAMETERS"
749 .SS "Parameters"
750 .PP
751 The section name defines the volume name which is the name that appears in the Chooser ot 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
752 \':\'
753 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 in afpd\&.conf
754 .PP
755 path = \fIPATH\fR \fB(V)\fR
756 .RS 4
757 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\&.
758 .sp
759 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
760 \':\'
761 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 in afpd\&.conf
762 .RE
763 .PP
764 appledouble = \fIea|v2\fR \fB(V)\fR
765 .RS 4
766 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
767 \fBea\fR\&.
768 .RE
769 .PP
770 vol size limit = \fIsize in MiB\fR \fB(V)\fR
771 .RS 4
772 Useful for TimeMachine: limits the reported volume size, thus preventing TM from using the whole real disk space for backup\&. Example: "vol size limit = 1000" would limit the reported disk space to 1 GB\&.
773 \fBIMPORTANT: \fR
774 This is an approximated calculation taking into accout the contents of TM 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\&.
775 .RE
776 .PP
777 valid users = \fIusers/groups\fR \fB(V)\fR
778 .RS 4
779 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"
780 .RE
781 .PP
782 invalid users = \fIusers/groups\fR \fB(V)\fR
783 .RS 4
784 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\&.
785 .RE
786 .PP
787 hosts allow = \fIIP host address/IP netmask bits[, \&.\&.\&. ]\fR \fB(V)\fR
788 .RS 4
789 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\&.
790 .sp
791 Example: hosts allow = 10\&.1\&.0\&.0/16 10\&.2\&.1\&.100 2001:0db8:1234::/48
792 .RE
793 .PP
794 hosts deny = \fIIP host address/IP netmask bits [\&.\&.\&.]\fR \fB(V)\fR
795 .RS 4
796 Listed hosts and nets are rejected, all others are allowed\&.
797 .sp
798 Example: hosts deny = 192\&.168\&.100/24 10\&.1\&.1\&.1 2001:db8::1428:57ab
799 .RE
800 .PP
801 cnid scheme = \fIbackend\fR \fB(V)\fR
802 .RS 4
803 set the CNID backend to be used for the volume, default is [:DEFAULT_CNID_SCHEME:] available schemes: [:COMPILED_BACKENDS:]
804 .RE
805 .PP
806 ea = \fInone|auto|sys|ad\fR
807 .RS 4
808 Specify how Extended Attributes
809 are stored\&.
810 \fBauto\fR
811 is the default\&.
812 .PP
813 auto
814 .RS 4
815 Try
816 \fBsys\fR
817 (by setting an EA on the shared directory itself), fallback to
818 \fBad\fR\&. Requires writeable volume for perfoming test\&.
819 \fBoptions:ro\fR
820 overwrites
821 \fBauto\fR
822 with
823 \fBnone\fR\&. Use explicit
824 \fBea:sys|ad\fR
825 for read\-only volumes where appropiate\&.
826 .RE
827 .PP
828 sys
829 .RS 4
830 Use filesystem Extended Attributes\&.
831 .RE
832 .PP
833 ad
834 .RS 4
835 Use files in
836 \fI\&.AppleDouble\fR
837 directories\&.
838 .RE
839 .PP
840 none
841 .RS 4
842 No Extended Attributes support\&.
843 .RE
844 .RE
845 .PP
846 mac charset = \fICHARSET\fR \fB(V)\fR
847 .RS 4
848 specifies the Mac client charset for this Volume, e\&.g\&.
849 \fIMAC_ROMAN\fR,
850 \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
851 .RE
852 .PP
853 casefold = \fBoption\fR
854 .RS 4
855 The casefold option handles, if the case of filenames should be changed\&. The available options are:
856 .sp
857 \fBtolower\fR
858 \- Lowercases names in both directions\&.
859 .sp
860 \fBtoupper\fR
861 \- Uppercases names in both directions\&.
862 .sp
863 \fBxlatelower\fR
864 \- Client sees lowercase, server sees uppercase\&.
865 .sp
866 \fBxlateupper\fR
867 \- Client sees uppercase, server sees lowercase\&.
868 .RE
869 .PP
870 password = \fIpassword\fR \fB(V)\fR
871 .RS 4
872 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)\&.
873 .RE
874 .PP
875 file perm = \fImode\fR \fB(V)\fR, directory perm = \fImode\fR \fB(V)\fR
876 .RS 4
877 Add(or) with the client requested permissions:
878 \fBfile perm\fR
879 is for files only,
880 \fBdirectory perm\fR
881 is for directories only\&. Use without
882 \fBvol options = noupriv\fR\&.
883 .PP
884 \fBExample.\ \&Volume for a collaborative workgroup\fR
885 .sp
886 .if n \{\
887 .RS 4
888 .\}
889 .nf
890 file perm = 0660
891 directory perm = 0770
892 .fi
893 .if n \{\
894 .RE
895 .\}
896
897 .RE
898 .PP
899 umask = \fImode\fR \fB(V)\fR
900 .RS 4
901 set perm mask\&. Use without
902 \fBvol options = noupriv\fR\&.
903 .RE
904 .PP
905 preexec = \fIcommand\fR \fB(V)\fR
906 .RS 4
907 command to be run when the volume is mounted, ignored for user defined volumes
908 .RE
909 .PP
910 postexec = \fIcommand\fR \fB(V)\fR
911 .RS 4
912 command to be run when the volume is closed, ignored for user defined volumes
913 .RE
914 .PP
915 root preexec = \fIcommand\fR \fB(V)\fR
916 .RS 4
917 command to be run as root when the volume is mounted, ignored for user defined volumes
918 .RE
919 .PP
920 root postexec = \fIcommand\fR \fB(V)\fR
921 .RS 4
922 command to be run as root when the volume is closed, ignored for user defined volumes
923 .RE
924 .PP
925 rolist = \fBusers/groups\fR \fB(V)\fR
926 .RS 4
927 Allows certain users and groups to have read\-only access to a share\&. This follows the allow option format\&.
928 .RE
929 .PP
930 rwlist = \fIusers/groups\fR \fB(V)\fR
931 .RS 4
932 Allows certain users and groups to have read/write access to a share\&. This follows the allow option format\&.
933 .RE
934 .PP
935 veto files = \fIvetoed names\fR \fB(V)\fR
936 .RS 4
937 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/"\&.
938 .RE
939 .SS "Volume options"
940 .PP
941 Boolean volume options\&.
942 .PP
943 acls = \fIBOOLEAN\fR (default: \fItrue\fR) \fB(V)\fR
944 .RS 4
945 Whether to flag volumes as supporting ACLs\&. If ACL support is compiled in, this is true by default\&.
946 .RE
947 .PP
948 cnid dev = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
949 .RS 4
950 Whether to use the device number in the CNID backends\&. Helps when the device number is not constant across a reboot, eg cluster, \&.\&.\&.
951 .RE
952 .PP
953 convert adouble = \fIBOOLEAN\fR (default: \fItrue\fR) \fB(V)\fR
954 .RS 4
955 Whether automatic conversion from
956 \fBapple double = v2\fR
957 to
958 \fBapple double = ea\fR
959 is performed when accessing filesystems from clients\&. This is generally useful, but costs some performance\&. It\'s recommdable to run
960 \fBdbd\fR
961 on volumes and do the conversion with that\&. Then this option can be set to no\&.
962 .RE
963 .PP
964 hex encoding = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
965 .RS 4
966 Whether :hex encoding is done for file and directory names containing the character
967 /\&. Setting this option to no makes the
968 /
969 character illegal\&.
970 .RE
971 .PP
972 invisible dots = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
973 .RS 4
974 make dot files invisible\&. Use without
975 \fBnousedots\fR\&.
976 .RE
977 .PP
978 network ids = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
979 .RS 4
980 Whether the server support network ids\&. Setting this to
981 \fIno\fR
982 will result in the client not using ACL AFP functions\&.
983 .RE
984 .PP
985 preexec close = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
986 .RS 4
987 A non\-zero return code from preexec close the volume being immediately, preventing clients to mount/see the volume in question\&.
988 .RE
989 .PP
990 read only = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
991 .RS 4
992 Specifies the share as being read only for all users\&. Overwrites
993 \fBea = auto\fR
994 with
995 \fBea = none\fR
996 .RE
997 .PP
998 root preexec close= \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
999 .RS 4
1000 A non\-zero return code from root_preexec closes the volume immediately, preventing clients to mount/see the volume in question\&.
1001 .RE
1002 .PP
1003 search db = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1004 .RS 4
1005 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\&.
1006 .RE
1007 .PP
1008 stat vol = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1009 .RS 4
1010 Whether to stat volume path when enumerating volumes list, useful for automounting or volumes created by a preexec script\&.
1011 .RE
1012 .PP
1013 time machine = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1014 .RS 4
1015 Whether to enable Time Machine suport for this volume\&.
1016 .RE
1017 .PP
1018 unix priv = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1019 .RS 4
1020 Whether to use AFP3 UNIX privileges\&. This should be set for OS X clients\&. See also:
1021 \fBfile perm\fR
1022 and
1023 \fBdirectory perm\fR\&.
1024 .RE
1025 .PP
1026 use dots = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1027 .RS 4
1028 Whether to do :hex translation for dot files\&. See also
1029 \fBinvisible dots\fR\&.
1030 .RE
1031 .SH "CNID BACKENDS"
1032 .PP
1033 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
1034 \&.AppleDB
1035 folder in the volume root\&.
1036 .PP
1037 cdb
1038 .RS 4
1039 "Concurrent database", backend is based on Sleepycat\'s Berkely DB\&. With this backend several
1040 \fBafpd\fR
1041 deamons access the CNID database directly\&. Berkeley DB locking is used to synchronize access, if more than one
1042 \fBafpd\fR
1043 process is active for a volume\&. The drawback is, that the crash of a single
1044 \fBafpd\fR
1045 process might corrupt the database\&.
1046 .RE
1047 .PP
1048 dbd
1049 .RS 4
1050 Access to the CNID database is restricted to the
1051 \fBcnid_metad\fR
1052 daemon process\&.
1053 \fBafpd\fR
1054 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
1055 \fBcdb\fR
1056 .RE
1057 .PP
1058 last
1059 .RS 4
1060 This backend is an exception, in terms of ID persistency\&. ID\'s are only valid for the current session\&. This is basically what
1061 \fBafpd\fR
1062 did in the 1\&.5 (and 1\&.6) versions\&. This backend is still available, as it is useful for e\&.g\&. sharing cdroms\&.
1063 .sp
1064 \fBWarning\fR: It is
1065 \fINOT\fR
1066 recommended to use this backend for volumes anymore, as
1067 \fBafpd\fR
1068 now relies heavily on a persistent ID database\&. Aliases will likely not work and filename mangling is not supported\&.
1069 .RE
1070 .PP
1071 Even though
1072 \fB\&./configure \-\-help\fR
1073 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\&.
1074 .SH "CHARSET OPTIONS"
1075 .PP
1076 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\&.
1077 .PP
1078 \fBafpd\fR
1079 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
1080 :f0\&. Some special characters will be converted as to :xx notation as well\&. \'/\' will be encoded to
1081 :2f, if
1082 \fBusedots\fR
1083 is not specified, a leading dot \'\&.\' will be encoded as
1084 :2e\&.
1085 .PP
1086 This version now uses UTF\-8 as the default encoding for names\&. Special characters, like \'/\' and a leading \'\&.\' will still be CAP style encoded \&.
1087 .PP
1088 The
1089 \fBvol charset\fR
1090 option will allow you to select another volume encoding\&. E\&.g\&. for western users another useful setting could be volcharset ISO\-8859\-15\&.
1091 \fBapfd\fR
1092 will accept any
1093 \fBiconv\fR(1)
1094 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,
1095 \fBafpd\fR
1096 will convert the UTF\-8
1097 character to
1098 \fBmac charset\fR
1099 first\&. If this conversion fails, you\'ll receive a \-50 error on the mac\&.
1100 .PP
1101 \fINote\fR: Whenever you can, please stick with the default UTF\-8 volume format\&.
1102 .SH "SEE ALSO"
1103 .PP
1104 \fBafpd\fR(8),
1105 \fBafppasswd\fR(5),
1106 \fBafp_signature.conf\fR(5),
1107 \fBcnid_metad\fR(8)