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