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