]> arthur.barton.de Git - netatalk.git/blob - man/man5/afp.conf.5.tmpl
Merge branch 'branch-allea' of netafp.com:git/netatalk into branch-allea
[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: 23 Feb 2012
6 .\"    Manual: Netatalk 3.0
7 .\"    Source: Netatalk 3.0
8 .\"  Language: English
9 .\"
10 .TH "AFP\&.CONF" "5" "23 Feb 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 \fBname\fR
117 can be used to change the AFP volume name which
118 \fIusers\'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 uamlist = \fIuams list\fR \fB(G)\fR
256 .RS 4
257 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 uampath = \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 k5keytab = \fIpath\fR \fB(G)\fR, k5service = \fIservice\fR \fB(G)\fR, k5realm = \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 ntdomain = \fIDOMAIN\fR \fB(G)\fR, ntseparator = \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 adminauthuser = \fIuser\fR \fB(G)\fR
311 .RS 4
312 Specifying eg
313 \fBadminauthuser root\fR
314 whenever a normal user login fails, afpd will try to authenticate as the specified
315 \fBadminauthuser\fR\&. If this succeeds, a normal session is created for the original connecting user\&. Said differently: if you know the password of
316 \fBadminauthuser\fR, you can authenticate as any other user\&.
317 .RE
318 .PP
319 ldap_server = \fIhost\fR \fB(G)\fR
320 .RS 4
321 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\&.
322 .sp
323 You can use
324 \fBafpldaptest\fR(1)
325 to syntactically check your config\&.
326 .RE
327 .PP
328 ldap_auth_method = \fInone|simple|sasl\fR \fB(G)\fR
329 .RS 4
330 Authentication method:
331 \fBnone | simple | sasl\fR
332 .PP
333 none
334 .RS 4
335 anonymous LDAP bind
336 .RE
337 .PP
338 simple
339 .RS 4
340 simple LDAP bind
341 .RE
342 .PP
343 sasl
344 .RS 4
345 SASL\&. Not yet supported !
346 .RE
347 .RE
348 .PP
349 ldap_auth_dn = \fIdn\fR \fB(G)\fR
350 .RS 4
351 Distinguished Name of the user for simple bind\&.
352 .sp
353 .RE
354 .PP
355 ldap_auth_pw = \fIpassword\fR \fB(G)\fR
356 .RS 4
357 Distinguished Name of the user for simple bind\&.
358 .sp
359 .RE
360 .PP
361 ldap_userbase = \fIbase dn\fR \fB(G)\fR
362 .RS 4
363 DN of the user container in LDAP\&.
364 .sp
365 .RE
366 .PP
367 ldap_userscope = \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_groupbase = \fIbase dn\fR \fB(G)\fR
375 .RS 4
376 DN of the group container in LDAP\&.
377 .sp
378 .RE
379 .PP
380 ldap_groupscope = \fIscope\fR \fB(G)\fR
381 .RS 4
382 Search scope for user search:
383 \fBbase | one | sub\fR
384 .sp
385 .RE
386 .PP
387 ldap_uuuid_attr = \fIdn\fR \fB(G)\fR
388 .RS 4
389 Name of the LDAP attribute with the UUIDs\&.
390 .sp
391 Note: this is used both for users and groups\&.
392 .sp
393 .RE
394 .PP
395 ldap_name_attr = \fIdn\fR \fB(G)\fR
396 .RS 4
397 Name of the LDAP attribute with the users short name\&.
398 .sp
399 .RE
400 .PP
401 ldap_group_attr = \fIdn\fR \fB(G)\fR
402 .RS 4
403 Name of the LDAP attribute with the groups short name\&.
404 .sp
405 .RE
406 .SS "Codepage Options"
407 .PP
408 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 codepages like MacRoman, MacCentralEurope, etc\&.
409 .PP
410 To be able to serve AFP3 and older clients at the same time,
411 \fBafpd\fR
412 needs to be able to convert between UTF\-8 and Mac codepages\&. Even OS X clients partly still rely on codepages\&. As there\'s no way,
413 \fBafpd\fR
414 can detect the codepage a pre AFP3 client uses, you have to specify it using the
415 \fBmaccodepage\fR
416 option\&. The default is MacRoman, which should be fine for most western users\&.
417 .PP
418 As
419 \fBafpd\fR
420 needs to interact with unix operating system as well, it need\'s to be able to convert from UTF8\-MAC/MacCodepage to the unix codepage\&. By default
421 \fBafpd\fR
422 uses the systems LOCALE, or ASCII if your system doesn\'t support locales\&. You can set the unix codepage using the
423 \fBunixcodepage\fR
424 option\&. If you\'re using extended characters in the configuration files for
425 \fBafpd\fR, make sure your terminal matches the
426 \fBunixcodepage\fR\&.
427 .PP
428 unixcodepage = \fICODEPAGE\fR \fB(G)\fR
429 .RS 4
430 Specifies the servers unix codepage, e\&.g\&. "ISO\-8859\-15" or "UTF8"\&. This is used to convert strings to/from the systems locale, e\&.g\&. for authenthication, server messages and volume names\&. Defaults to LOCALE if your system supports it, otherwise ASCII will be used\&.
431 .RE
432 .PP
433 maccodepage = \fICODEPAGE\fR \fB(G)\fR
434 .RS 4
435 Specifies the mac clients codepage, e\&.g\&. "MAC_ROMAN"\&. 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 maccharset\&. Defaults to MAC_ROMAN\&.
436 .RE
437 .SS "Password Options"
438 .PP
439 passwdfile = \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 passwdminlen = \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 fqdn = \fIname:port\fR \fB(G)\fR
451 .RS 4
452 Specifies a fully\-qualified domain name, with an optional port\&. This is discarded if the server cannot resolve it\&. This option is not honored by AppleShare clients <= 3\&.8\&.3\&. This option is disabled by default\&. Use with caution as this will involve a second name resolution step on the client side\&. Also note that afpd will advertise this name:port combination but not automatically listen to it\&.
453 .RE
454 .PP
455 hostname = \fIname\fR \fB(G)\fR
456 .RS 4
457 Use this instead of the result from calling hostname for 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
458 \fBafp listen\fR\&.
459 .RE
460 .PP
461 afp listen = \fIip address[:port][,ip adress[:port], \&.\&.\&.]\fR \fB(G)\fR
462 .RS 4
463 Specifies the IP address that the server should advertise
464 \fBand\fR
465 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\&.
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 sleep time = \fInumber\fR \fB(G)\fR
482 .RS 4
483 Keep sleeping AFP sessions for
484 \fInumber\fR
485 hours before disconnecting clients in sleep mode\&. Default is 10 hours\&.
486 .RE
487 .PP
488 disconnect time = \fInumber\fR \fB(G)\fR
489 .RS 4
490 Keep disconnected AFP sessions for
491 \fInumber\fR
492 hours before dropping them\&. Default is 24 hours\&.
493 .RE
494 .PP
495 server_quantum = \fInumber\fR \fB(G)\fR
496 .RS 4
497 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
498 .RE
499 .PP
500 dsireadbuf = \fInumber\fR \fB(G)\fR
501 .RS 4
502 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\&.
503 \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)\&.
504 .RE
505 .PP
506 tcprcvbuf = \fInumber\fR \fB(G)\fR
507 .RS 4
508 Try to set TCP receive buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
509 .RE
510 .PP
511 tcpsndbuf = \fInumber\fR \fB(G)\fR
512 .RS 4
513 Try to set TCP send buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
514 .RE
515 .SS "Miscellaneous Options"
516 .PP
517 vol dbpath = \fIpath\fR \fB(G)\fR
518 .RS 4
519 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
520 $localstatedir/netatalk/CNID/, where $localstatedir defaults to
521 /var\&.
522 .RE
523 .PP
524 basedir regex = \fIregex\fR \fB(H)\fR
525 .RS 4
526 Regular expression which matches the parent directory of the user homes\&. In the simple case this is just a path ie
527 \fBbasedir regex = /home\fR
528 .RE
529 .PP
530 name = \fIname\fR \fB(H)\fR
531 .RS 4
532 AFP user home volume name\&. The default is
533 \fIusers\'s home\fR\&.
534 .RE
535 .PP
536 vol preset = \fIname\fR \fB(G)/(V)\fR
537 .RS 4
538 Use section
539 \fBname\fR
540 as option preset for all volumes (when set in the global section) or for one volume (when set in that volume\'s section)\&.
541 .RE
542 .PP
543 admingroup = \fIgroup\fR \fB(G)\fR
544 .RS 4
545 Allows users of a certain group to be seen as the superuser when they log in\&. This option is disabled by default\&.
546 .RE
547 .PP
548 cnidserver = \fIipaddress[:port]\fR \fB(G)/(V)\fR
549 .RS 4
550 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\&.\-
551 .RE
552 .PP
553 dircachesize = \fInumber\fR \fB(G)\fR
554 .RS 4
555 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\&.
556 .sp
557 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\&.
558 .RE
559 .PP
560 fcelistener = \fIhost[:port]\fR \fB(G)\fR
561 .RS 4
562 Enables sending FCE events to the specified
563 \fIhost\fR, default
564 \fIport\fR
565 is 12250 if not specified\&. Specifying mutliple listeners is done by having this option once for each of them\&.
566 .RE
567 .PP
568 fceevents = \fIfmod,fdel,ddel,fcre,dcre,tmsz\fR \fB(G)\fR
569 .RS 4
570 Speficies which FCE events are active, default is
571 \fIfmod,fdel,ddel,fcre,dcre\fR\&.
572 .RE
573 .PP
574 fcecoalesce = \fIall|delete|create\fR \fB(G)\fR
575 .RS 4
576 Coalesce FCE events\&.
577 .RE
578 .PP
579 fceholdfmod = \fIseconds\fR \fB(G)\fR
580 .RS 4
581 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\&.
582 .RE
583 .PP
584 guestname = \fIname\fR \fB(G)\fR
585 .RS 4
586 Specifies the user that guests should use (default is "nobody")\&. The name should be quoted\&.
587 .RE
588 .PP
589 loginmesg = \fImessage\fR \fB(G)\fR
590 .RS 4
591 Sets a message to be displayed when clients logon to the server\&. The message should be in
592 \fBunixcodepage\fR
593 and should be quoted\&. Extended characters are allowed\&.
594 .RE
595 .PP
596 mimicmodel = \fImodel\fR \fB(G)\fR
597 .RS 4
598 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\&.
599 .RE
600 .PP
601 signature = { user:<text> | auto } \fB(G)\fR
602 .RS 4
603 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
604 :ETCDIR:/afp_signature\&.conf
605 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\&.
606 .PP
607 \fBExample.\ \&Three server definitions using 2 different server signatures\fR
608 .sp
609 .if n \{\
610 .RS 4
611 .\}
612 .nf
613 first \-signature user:USERS
614                   second \-signature user:USERS
615                   third \-signature user:ADMINS
616 .fi
617 .if n \{\
618 .RE
619 .\}
620
621
622 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\&.
623 .RE
624 .PP
625 volnamelen = \fInumber\fR \fB(G)\fR
626 .RS 4
627 Max length of UTF8\-MAC volume name for Mac OS X\&. Note that Hangul is especially sensitive to this\&.
628 .sp
629 .if n \{\
630 .RS 4
631 .\}
632 .nf
633 73:  limit of Mac OS X 10\&.1
634                 80:  limit for Mac OS X 10\&.4/10\&.5 (default)
635                 255: limit of spec
636 .fi
637 .if n \{\
638 .RE
639 .\}
640 .sp
641 Mac OS 9 and earlier are not influenced by this, because Maccharset volume name is always limitted to 27 bytes\&.
642 .RE
643 .SS "Logging Options"
644 .PP
645 logfile = \fIfile\fR \fB(G)\fR
646 .RS 4
647 If not specified Netatalk logs to syslogs daemon facilify\&. Otherwise it logs to
648 \fBlogfile\fR\&.
649 .RE
650 .PP
651 loglevel = \fItype:level,[type:level, \&.\&.\&.]\fR \fB(G)\fR
652 .RS 4
653 Specify that any message of a loglevel up to the given
654 \fBloglevel\fR
655 should be logged\&.
656 .sp
657 By default afpd logs to syslog with a default logging setup equivalent to
658 \fBdefault:note\fR
659 .sp
660 logtypes: default, afpdaemon, logger, uamsdaemon
661 .sp
662 loglevels: severe, error, warn, note, info, debug, debug6, debug7, debug8, debug9, maxdebug
663 .if n \{\
664 .sp
665 .\}
666 .RS 4
667 .it 1 an-trap
668 .nr an-no-space-flag 1
669 .nr an-break-flag 1
670 .br
671 .ps +1
672 \fBNote\fR
673 .ps -1
674 .br
675 Both logtype and loglevels are case insensitive\&.
676 .sp .5v
677 .RE
678 .RE
679 .SS "Global Options"
680 .PP
681 options =
682 \fIoption,[option,\&.\&.\&.]\fR
683 \fB(G)\fR
684 .PP
685 options =
686 \fIoption [option \&.\&.\&.]\fR
687 \fB(G)\fR
688 .PP
689 This allows multiple options to be specified in a comma or space delimited format\&. The available options are:
690 .PP
691 [no]savepassword \fB(G)\fR
692 .RS 4
693 Enables or disables the ability of clients to save passwords locally
694 .RE
695 .PP
696 [no]setpassword \fB(G)\fR
697 .RS 4
698 Enables or disables the ability of clients to change their passwords via chooser or the "connect to server" dialog
699 .RE
700 .PP
701 advertise_ssh \fB(G)\fR
702 .RS 4
703 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
704 \fBsshd\fR(8)
705 on the server to let things work\&.
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 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\&.
719 .sp .5v
720 .RE
721 .RE
722 .PP
723 nozeroconf \fB(G)\fR
724 .RS 4
725 Disable automatic Zeroconf
726 service registration if support was compiled in\&.
727 .RE
728 .PP
729 client_polling \fB(G)\fR
730 .RS 4
731 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\&.
732 \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!
733 .if n \{\
734 .sp
735 .\}
736 .RS 4
737 .it 1 an-trap
738 .nr an-no-space-flag 1
739 .nr an-break-flag 1
740 .br
741 .ps +1
742 \fBNote\fR
743 .ps -1
744 .br
745 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\&.
746 .sp .5v
747 .RE
748 .RE
749 .PP
750 [no]icon \fB(G)\fR
751 .RS 4
752 [Don\'t] Use the platform\-specific icon\&. Recent Mac OS don\'t display it any longer\&.
753 .RE
754 .PP
755 keepsessions \fB(G)\fR
756 .RS 4
757 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!
758 .RE
759 .PP
760 noacl2maccess \fB(G)\fR
761 .RS 4
762 Don\'t map filesystem ACLs to effective permissions\&.
763 .RE
764 .SS "Debug Parameters"
765 .PP
766 These options are useful for debugging only\&.
767 .PP
768 tickleval = \fInumber\fR \fB(G)\fR
769 .RS 4
770 Sets the tickle timeout interval (in seconds)\&. Defaults to 30\&.
771 .RE
772 .PP
773 timeout = \fInumber\fR \fB(G)\fR
774 .RS 4
775 Specify the number of tickles to send before timing out a connection\&. The default is 4, therefore a connection will timeout after 2 minutes\&.
776 .RE
777 .SH "EXPLANATION OF VOLUME PARAMETERS"
778 .SS "Parameters"
779 .PP
780 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
781 \':\'
782 character\&. The volume name is mangled if it is very long\&. Mac codepage volume name is limited to 27 characters\&. UTF8\-MAC volume name is limited to \-volnamelen parameter in afpd\&.conf
783 .PP
784 path = \fIPATH\fR \fB(V)\fR
785 .RS 4
786 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\&.
787 .sp
788 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
789 \':\'
790 character\&. The volume name is mangled if it is very long\&. Mac codepage volume name is limited to 27 characters\&. UTF8\-MAC volume name is limited to \-volnamelen parameter in afpd\&.conf
791 .RE
792 .PP
793 adouble = \fIea|v2\fR \fB(V)\fR
794 .RS 4
795 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
796 \fBea\fR\&.
797 .RE
798 .PP
799 volsizelimit = \fIsize in MiB\fR \fB(V)\fR
800 .RS 4
801 Useful for TimeMachine: limits the reported volume size, thus preventing TM from using the whole real disk space for backup\&. Example: "volsizelimit:1000" would limit the reported disk space to 1 GB\&.
802 \fBIMPORTANT: \fR
803 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\&.
804 .RE
805 .PP
806 allow = \fIusers/groups\fR \fB(V)\fR
807 .RS 4
808 The allow option allows the users and groups that access a share to be specified\&. Users and groups are specified, delimited by commas\&. Groups are designated by a @ prefix\&. Example: allow:user1,user2,@group
809 .RE
810 .PP
811 deny = \fIusers/groups\fR \fB(V)\fR
812 .RS 4
813 The deny option specifies users and groups who are not allowed access to the share\&. It follows the same format as the allow option\&.
814 .RE
815 .PP
816 allowed_hosts = \fIIP host address/IP netmask bits[, \&.\&.\&. ]\fR \fB(V)\fR
817 .RS 4
818 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\&.
819 .sp
820 Example: allowed_hosts:10\&.1\&.0\&.0/16,10\&.2\&.1\&.100,2001:0db8:1234::/48
821 .RE
822 .PP
823 denied_hosts = \fIIP host address/IP netmask bits[, \&.\&.\&.]\fR \fB(V)\fR
824 .RS 4
825 Listed hosts and nets are rejected, all others are allowed\&.
826 .sp
827 Example: denied_hosts: 192\&.168\&.100/24,10\&.1\&.1\&.1,2001:db8::1428:57ab
828 .RE
829 .PP
830 cnidscheme = \fIbackend\fR \fB(V)\fR
831 .RS 4
832 set the CNID backend to be used for the volume, default is [:DEFAULT_CNID_SCHEME:] available schemes: [:COMPILED_BACKENDS:]
833 .RE
834 .PP
835 cnidserver = \fIhost[:port]\fR \fB(V)\fR
836 .RS 4
837 Query this servername or IP address (default:\fIlocalhost\fR) and port (default:
838 \fI4700\fR) for CNIDs\&. Only used with CNID backend "\fIdbd\fR"\&. This option here overrides any setting from
839 afpd\&.conf:\fBcnidserver\fR\&.
840 .RE
841 .PP
842 ea = \fInone|auto|sys|ad\fR
843 .RS 4
844 Specify how Extended Attributes
845 are stored\&.
846 \fBauto\fR
847 is the default\&.
848 .PP
849 auto
850 .RS 4
851 Try
852 \fBsys\fR
853 (by setting an EA on the shared directory itself), fallback to
854 \fBad\fR\&. Requires writeable volume for perfoming test\&.
855 \fBoptions:ro\fR
856 overwrites
857 \fBauto\fR
858 with
859 \fBnone\fR\&. Use explicit
860 \fBea:sys|ad\fR
861 for read\-only volumes where appropiate\&.
862 .RE
863 .PP
864 sys
865 .RS 4
866 Use filesystem Extended Attributes\&.
867 .RE
868 .PP
869 ad
870 .RS 4
871 Use files in
872 \fI\&.AppleDouble\fR
873 directories\&.
874 .RE
875 .PP
876 none
877 .RS 4
878 No Extended Attributes support\&.
879 .RE
880 .RE
881 .PP
882 maccharset = \fIcharset\fR \fB(V)\fR
883 .RS 4
884 specifies the mac client codepage for this Volume, e\&.g\&. "MAC_ROMAN", "MAC_CYRILLIC"\&. If not specified the setting from
885 afpd\&.conf
886 is inherited\&. This setting is only required if you need volumes, where the mac codepage differs from the one globally set in
887 afpd\&.conf\&.
888 .RE
889 .PP
890 casefold = \fBoption\fR
891 .RS 4
892 The casefold option handles, if the case of filenames should be changed\&. The available options are:
893 .sp
894 \fBtolower\fR
895 \- Lowercases names in both directions\&.
896 .sp
897 \fBtoupper\fR
898 \- Uppercases names in both directions\&.
899 .sp
900 \fBxlatelower\fR
901 \- Client sees lowercase, server sees uppercase\&.
902 .sp
903 \fBxlateupper\fR
904 \- Client sees uppercase, server sees lowercase\&.
905 .RE
906 .PP
907 password = \fIpassword\fR \fB(V)\fR
908 .RS 4
909 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)\&.
910 .RE
911 .PP
912 perm|fperm|dperm:\fImode\fR \fB(V)\fR
913 .RS 4
914 Add(or) with the client requested permissions:
915 \fBperm\fR
916 affects files and directories,
917 \fBfperm\fR
918 is for files only,
919 \fBdperm\fR
920 is for directories only\&. Use with
921 \fBoptions:upriv\fR\&.
922 .PP
923 \fBExample.\ \&Volume for a collaborative workgroup\fR
924 .sp
925 .if n \{\
926 .RS 4
927 .\}
928 .nf
929 /path/to/volume "Workgroup" options:upriv dperm:0770 fperm:0660
930 .fi
931 .if n \{\
932 .RE
933 .\}
934 .RE
935 .PP
936 umask = \fImode\fR \fB(V)\fR
937 .RS 4
938 set perm mask\&. Use with
939 \fBoptions:upriv\fR\&.
940 .RE
941 .PP
942 preexec = \fIcommand\fR \fB(V)\fR
943 .RS 4
944 command to be run when the volume is mounted, ignored for user defined volumes
945 .RE
946 .PP
947 postexec = \fIcommand\fR \fB(V)\fR
948 .RS 4
949 command to be run when the volume is closed, ignored for user defined volumes
950 .RE
951 .PP
952 root_preexec = \fIcommand\fR \fB(V)\fR
953 .RS 4
954 command to be run as root when the volume is mounted, ignored for user defined volumes
955 .RE
956 .PP
957 root_postexec = \fIcommand\fR \fB(V)\fR
958 .RS 4
959 command to be run as root when the volume is closed, ignored for user defined volumes
960 .RE
961 .PP
962 rolist = \fBusers/groups\fR \fB(V)\fR
963 .RS 4
964 Allows certain users and groups to have read\-only access to a share\&. This follows the allow option format\&.
965 .RE
966 .PP
967 rwlist = \fIusers/groups\fR \fB(V)\fR
968 .RS 4
969 Allows certain users and groups to have read/write access to a share\&. This follows the allow option format\&.
970 .RE
971 .PP
972 veto = \fIvetoed names\fR \fB(V)\fR
973 .RS 4
974 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/"\&.
975 .RE
976 .PP
977 volcharset = \fIcharset\fR \fB(V)\fR
978 .RS 4
979 specifies the volume codepage, e\&.g\&. "UTF8", "UTF8\-MAC", "ISO\-8859\-15"\&. Defaults to "UTF8"\&.
980 .RE
981 .SS "Volume options"
982 .PP
983 vol options =
984 \fIoption,[option,\&.\&.\&.]\fR
985 \fB(V)\fR
986 .PP
987 vol options =
988 \fIoption [option \&.\&.\&.]\fR
989 \fB(V)\fR
990 .PP
991 This allows multiple options to be specified in a comma or space delimited format\&. The available options are:
992 .PP
993 searchdb \fB(V)\fR
994 .RS 4
995 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\&.
996 .RE
997 .PP
998 tm \fB(V)\fR
999 .RS 4
1000 Enable Time Machine suport for this volume\&.
1001 .RE
1002 .PP
1003 invisibledots \fB(V)\fR
1004 .RS 4
1005 Use with
1006 \fBusedots\fR: make dot files invisible\&.
1007 .RE
1008 .PP
1009 nonetids \fB(V)\fR
1010 .RS 4
1011 Try to force ACL unawareness on the client\&.
1012 .RE
1013 .PP
1014 preexec_close \fB(V)\fR
1015 .RS 4
1016 a non\-zero return code from preexec close the volume being immediately, preventing clients to mount/see the volume in question\&.
1017 .RE
1018 .PP
1019 ro \fB(V)\fR
1020 .RS 4
1021 Specifies the share as being read only for all users\&. The \&.AppleDB directory has to be writeable, you can use the
1022 \fB\-dbpath\fR
1023 option to relocate it\&. Overwrites
1024 \fBea:auto\fR
1025 with
1026 \fBea:none\fR
1027 .RE
1028 .PP
1029 root_preexec_close \fB(V)\fR
1030 .RS 4
1031 a non\-zero return code from root_preexec closes the volume immediately, preventing clients to mount/see the volume in question\&.
1032 .RE
1033 .PP
1034 upriv \fB(V)\fR
1035 .RS 4
1036 use AFP3 unix privileges\&. This should be set for OS X clients\&. Starting with Netatalk 2\&.1 it\'s part of the default config :DEFAULT: line\&. See also:
1037 \fBperm|fperm|dperm\fR\&.
1038 .RE
1039 .PP
1040 usedots \fB(V)\fR
1041 .RS 4
1042 Don\'t do :hex translation for dot files\&. note: when this option gets set, certain file names become illegal\&. These are \&.Parent and anything that starts with \&.Apple\&. See also
1043 \fBinvisibledots\fR\&.
1044 .RE
1045 .PP
1046 nodev \fB(V)\fR
1047 .RS 4
1048 always use 0 for device number, helps when the device number is not constant across a reboot, cluster, \&.\&.\&.
1049 .RE
1050 .PP
1051 nohex \fB(V)\fR
1052 .RS 4
1053 Disables :hex translations for anything except dot files\&. This option makes the
1054 \'/\' character illegal\&.
1055 .RE
1056 .PP
1057 nostat \fB(V)\fR
1058 .RS 4
1059 don\'t stat volume path when enumerating volumes list, useful for automounting or volumes created by a preexec script\&.
1060 .RE
1061 .SH "CNID BACKENDS"
1062 .PP
1063 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
1064 \&.AppleDB
1065 folder in the volume root\&.
1066 .PP
1067 cdb
1068 .RS 4
1069 "Concurrent database", backend is based on Sleepycat\'s Berkely DB\&. With this backend several
1070 \fBafpd\fR
1071 deamons access the CNID database directly\&. Berkeley DB locking is used to synchronize access, if more than one
1072 \fBafpd\fR
1073 process is active for a volume\&. The drawback is, that the crash of a single
1074 \fBafpd\fR
1075 process might corrupt the database\&.
1076 .RE
1077 .PP
1078 dbd
1079 .RS 4
1080 Access to the CNID database is restricted to the
1081 \fBcnid_metad\fR
1082 daemon process\&.
1083 \fBafpd\fR
1084 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
1085 \fBcdb\fR
1086 .RE
1087 .PP
1088 last
1089 .RS 4
1090 This backend is an exception, in terms of ID persistency\&. ID\'s are only valid for the current session\&. This is basically what
1091 \fBafpd\fR
1092 did in the 1\&.5 (and 1\&.6) versions\&. This backend is still available, as it is useful for e\&.g\&. sharing cdroms\&.
1093 .sp
1094 \fBWarning\fR: It is
1095 \fINOT\fR
1096 recommended to use this backend for volumes anymore, as
1097 \fBafpd\fR
1098 now relies heavily on a persistent ID database\&. Aliases will likely not work and filename mangling is not supported\&.
1099 .RE
1100 .PP
1101 Even though
1102 \fB\&./configure \-\-help\fR
1103 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\&.
1104 .SH "CHARSET OPTIONS"
1105 .PP
1106 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\&.
1107 .PP
1108 \fBafpd\fR
1109 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
1110 :f0\&. Some special characters will be converted as to :xx notation as well\&. \'/\' will be encoded to
1111 :2f, if
1112 \fBusedots\fR
1113 is not specified, a leading dot \'\&.\' will be encoded as
1114 :2e\&.
1115 .PP
1116 This version now uses UTF\-8 as the default encoding for names\&. Special characters, like \'/\' and a leading \'\&.\' will still be CAP style encoded \&.
1117 .PP
1118 The
1119 \fBvolcharset\fR
1120 option will allow you to select another volume encoding\&. E\&.g\&. for western users another useful setting could be volcharset ISO\-8859\-15\&.
1121 \fBapfd\fR
1122 will accept any
1123 \fBiconv\fR(1)
1124 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,
1125 \fBafpd\fR
1126 will convert the UTF\-8
1127 character to
1128 \fBmaccharset\fR
1129 first\&. If this conversion fails, you\'ll receive a \-50 error on the mac\&.
1130 .PP
1131 \fINote\fR: Whenever you can, please stick with the default UTF\-8 volume format\&.
1132 .SH "SEE ALSO"
1133 .PP
1134 \fBafpd\fR(8),
1135 \fBafppasswd\fR(5),
1136 \fBafp_signature.conf\fR(5),
1137 \fBcnid_metad\fR(8)