]> arthur.barton.de Git - netatalk.git/blob - man/man5/afp.conf.5.tmpl
Include parameter
[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 server_quantum = \fInumber\fR \fB(G)\fR
482 .RS 4
483 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
484 .RE
485 .PP
486 dsireadbuf = \fInumber\fR \fB(G)\fR
487 .RS 4
488 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\&.
489 \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)\&.
490 .RE
491 .PP
492 tcprcvbuf = \fInumber\fR \fB(G)\fR
493 .RS 4
494 Try to set TCP receive buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
495 .RE
496 .PP
497 tcpsndbuf = \fInumber\fR \fB(G)\fR
498 .RS 4
499 Try to set TCP send buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
500 .RE
501 .SS "Miscellaneous Options"
502 .PP
503 basedir regex = \fIregex\fR \fB(H)\fR
504 .RS 4
505 Regular expression which matches the parent directory of the user homes\&. In the simple case this is just a path ie
506 \fBbasedir regex = /home\fR
507 .RE
508 .PP
509 name = \fIname\fR \fB(H)\fR
510 .RS 4
511 AFP user home volume name\&. The default is
512 \fIusers\'s home\fR\&.
513 .RE
514 .PP
515 vol preset = \fIname\fR \fB(G)/(V)\fR
516 .RS 4
517 Use section
518 \fBname\fR
519 as option preset for all volumes (when set in the global section) or for one volume (when set in that volume\'s section)\&.
520 .RE
521 .PP
522 admingroup = \fIgroup\fR \fB(G)\fR
523 .RS 4
524 Allows users of a certain group to be seen as the superuser when they log in\&. This option is disabled by default\&.
525 .RE
526 .PP
527 cnidserver = \fIipaddress[:port]\fR \fB(G)/(V)\fR
528 .RS 4
529 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\&.\-
530 .RE
531 .PP
532 dircachesize = \fInumber\fR \fB(G)\fR
533 .RS 4
534 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\&.
535 .sp
536 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\&.
537 .RE
538 .PP
539 fcelistener = \fIhost[:port]\fR \fB(G)\fR
540 .RS 4
541 Enables sending FCE events to the specified
542 \fIhost\fR, default
543 \fIport\fR
544 is 12250 if not specified\&. Specifying mutliple listeners is done by having this option once for each of them\&.
545 .RE
546 .PP
547 fceevents = \fIfmod,fdel,ddel,fcre,dcre,tmsz\fR \fB(G)\fR
548 .RS 4
549 Speficies which FCE events are active, default is
550 \fIfmod,fdel,ddel,fcre,dcre\fR\&.
551 .RE
552 .PP
553 fcecoalesce = \fIall|delete|create\fR \fB(G)\fR
554 .RS 4
555 Coalesce FCE events\&.
556 .RE
557 .PP
558 fceholdfmod = \fIseconds\fR \fB(G)\fR
559 .RS 4
560 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\&.
561 .RE
562 .PP
563 guestname = \fIname\fR \fB(G)\fR
564 .RS 4
565 Specifies the user that guests should use (default is "nobody")\&. The name should be quoted\&.
566 .RE
567 .PP
568 loginmesg = \fImessage\fR \fB(G)\fR
569 .RS 4
570 Sets a message to be displayed when clients logon to the server\&. The message should be in
571 \fBunixcodepage\fR
572 and should be quoted\&. Extended characters are allowed\&.
573 .RE
574 .PP
575 mimicmodel = \fImodel\fR \fB(G)\fR
576 .RS 4
577 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\&.
578 .RE
579 .PP
580 signature = { user:<text> | auto } \fB(G)\fR
581 .RS 4
582 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
583 :ETCDIR:/afp_signature\&.conf
584 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\&.
585 .PP
586 \fBExample.\ \&Three server definitions using 2 different server signatures\fR
587 .sp
588 .if n \{\
589 .RS 4
590 .\}
591 .nf
592 first \-signature user:USERS
593                   second \-signature user:USERS
594                   third \-signature user:ADMINS
595 .fi
596 .if n \{\
597 .RE
598 .\}
599
600
601 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\&.
602 .RE
603 .PP
604 volnamelen = \fInumber\fR \fB(G)\fR
605 .RS 4
606 Max length of UTF8\-MAC volume name for Mac OS X\&. Note that Hangul is especially sensitive to this\&.
607 .sp
608 .if n \{\
609 .RS 4
610 .\}
611 .nf
612 73:  limit of Mac OS X 10\&.1
613                 80:  limit for Mac OS X 10\&.4/10\&.5 (default)
614                 255: limit of spec
615 .fi
616 .if n \{\
617 .RE
618 .\}
619 .sp
620 Mac OS 9 and earlier are not influenced by this, because Maccharset volume name is always limitted to 27 bytes\&.
621 .RE
622 .SS "Logging Options"
623 .PP
624 logfile = \fIfile\fR \fB(G)\fR
625 .RS 4
626 If not specified Netatalk logs to syslogs daemon facilify\&. Otherwise it logs to
627 \fBlogfile\fR\&.
628 .RE
629 .PP
630 loglevel = \fItype:level,[type:level, \&.\&.\&.]\fR \fB(G)\fR
631 .RS 4
632 Specify that any message of a loglevel up to the given
633 \fBloglevel\fR
634 should be logged\&.
635 .sp
636 By default afpd logs to syslog with a default logging setup equivalent to
637 \fBdefault:note\fR
638 .sp
639 logtypes: default, afpdaemon, logger, uamsdaemon
640 .sp
641 loglevels: severe, error, warn, note, info, debug, debug6, debug7, debug8, debug9, maxdebug
642 .if n \{\
643 .sp
644 .\}
645 .RS 4
646 .it 1 an-trap
647 .nr an-no-space-flag 1
648 .nr an-break-flag 1
649 .br
650 .ps +1
651 \fBNote\fR
652 .ps -1
653 .br
654 Both logtype and loglevels are case insensitive\&.
655 .sp .5v
656 .RE
657 .RE
658 .SS "Global Options"
659 .PP
660 options =
661 \fIoption,[option,\&.\&.\&.]\fR
662 \fB(G)\fR
663 .PP
664 options =
665 \fIoption [option \&.\&.\&.]\fR
666 \fB(G)\fR
667 .PP
668 This allows multiple options to be specified in a comma or space delimited format\&. The available options are:
669 .PP
670 [no]savepassword \fB(G)\fR
671 .RS 4
672 Enables or disables the ability of clients to save passwords locally
673 .RE
674 .PP
675 [no]setpassword \fB(G)\fR
676 .RS 4
677 Enables or disables the ability of clients to change their passwords via chooser or the "connect to server" dialog
678 .RE
679 .PP
680 advertise_ssh \fB(G)\fR
681 .RS 4
682 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
683 \fBsshd\fR(8)
684 on the server to let things work\&.
685 .if n \{\
686 .sp
687 .\}
688 .RS 4
689 .it 1 an-trap
690 .nr an-no-space-flag 1
691 .nr an-break-flag 1
692 .br
693 .ps +1
694 \fBNote\fR
695 .ps -1
696 .br
697 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\&.
698 .sp .5v
699 .RE
700 .RE
701 .PP
702 nozeroconf \fB(G)\fR
703 .RS 4
704 Disable automatic Zeroconf
705 service registration if support was compiled in\&.
706 .RE
707 .PP
708 client_polling \fB(G)\fR
709 .RS 4
710 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\&.
711 \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!
712 .if n \{\
713 .sp
714 .\}
715 .RS 4
716 .it 1 an-trap
717 .nr an-no-space-flag 1
718 .nr an-break-flag 1
719 .br
720 .ps +1
721 \fBNote\fR
722 .ps -1
723 .br
724 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\&.
725 .sp .5v
726 .RE
727 .RE
728 .PP
729 [no]icon \fB(G)\fR
730 .RS 4
731 [Don\'t] Use the platform\-specific icon\&. Recent Mac OS don\'t display it any longer\&.
732 .RE
733 .PP
734 keepsessions \fB(G)\fR
735 .RS 4
736 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!
737 .RE
738 .PP
739 sleep \fInumber\fR \fB(G)\fR
740 .RS 4
741 AFP 3\&.x waits
742 \fInumber\fR
743 hours before disconnecting clients in sleep mode\&. Default is 10 hours\&.
744 .RE
745 .PP
746 noacl2maccess \fB(G)\fR
747 .RS 4
748 Don\'t map filesystem ACLs to effective permissions\&.
749 .RE
750 .SS "Debug Parameters"
751 .PP
752 These options are useful for debugging only\&.
753 .PP
754 tickleval = \fInumber\fR \fB(G)\fR
755 .RS 4
756 Sets the tickle timeout interval (in seconds)\&. Defaults to 30\&.
757 .RE
758 .PP
759 timeout = \fInumber\fR \fB(G)\fR
760 .RS 4
761 Specify the number of tickles to send before timing out a connection\&. The default is 4, therefore a connection will timeout after 2 minutes\&.
762 .RE
763 .SH "EXPLANATION OF VOLUME PARAMETERS"
764 .SS "Parameters"
765 .PP
766 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
767 \':\'
768 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
769 .PP
770 path = \fIPATH\fR \fB(V)\fR
771 .RS 4
772 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\&.
773 .sp
774 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
775 \':\'
776 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
777 .RE
778 .PP
779 adouble = \fIea|v2\fR \fB(V)\fR
780 .RS 4
781 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
782 \fBea\fR\&.
783 .RE
784 .PP
785 volsizelimit = \fIsize in MiB\fR \fB(V)\fR
786 .RS 4
787 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\&.
788 \fBIMPORTANT: \fR
789 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\&.
790 .RE
791 .PP
792 allow = \fIusers/groups\fR \fB(V)\fR
793 .RS 4
794 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
795 .RE
796 .PP
797 deny = \fIusers/groups\fR \fB(V)\fR
798 .RS 4
799 The deny option specifies users and groups who are not allowed access to the share\&. It follows the same format as the allow option\&.
800 .RE
801 .PP
802 allowed_hosts = \fIIP host address/IP netmask bits[, \&.\&.\&. ]\fR \fB(V)\fR
803 .RS 4
804 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\&.
805 .sp
806 Example: allowed_hosts:10\&.1\&.0\&.0/16,10\&.2\&.1\&.100,2001:0db8:1234::/48
807 .RE
808 .PP
809 denied_hosts = \fIIP host address/IP netmask bits[, \&.\&.\&.]\fR \fB(V)\fR
810 .RS 4
811 Listed hosts and nets are rejected, all others are allowed\&.
812 .sp
813 Example: denied_hosts: 192\&.168\&.100/24,10\&.1\&.1\&.1,2001:db8::1428:57ab
814 .RE
815 .PP
816 cnidscheme = \fIbackend\fR \fB(V)\fR
817 .RS 4
818 set the CNID backend to be used for the volume, default is [:DEFAULT_CNID_SCHEME:] available schemes: [:COMPILED_BACKENDS:]
819 .RE
820 .PP
821 dbpath = \fIpath\fR \fB(V)\fR
822 .RS 4
823 Sets the database information to be stored in path\&. You have to specifiy a writable location, even if the volume is read only\&.
824 .RE
825 .PP
826 cnidserver = \fIhost[:port]\fR \fB(V)\fR
827 .RS 4
828 Query this servername or IP address (default:\fIlocalhost\fR) and port (default:
829 \fI4700\fR) for CNIDs\&. Only used with CNID backend "\fIdbd\fR"\&. This option here overrides any setting from
830 afpd\&.conf:\fBcnidserver\fR\&.
831 .RE
832 .PP
833 ea = \fInone|auto|sys|ad\fR
834 .RS 4
835 Specify how Extended Attributes
836 are stored\&.
837 \fBauto\fR
838 is the default\&.
839 .PP
840 auto
841 .RS 4
842 Try
843 \fBsys\fR
844 (by setting an EA on the shared directory itself), fallback to
845 \fBad\fR\&. Requires writeable volume for perfoming test\&.
846 \fBoptions:ro\fR
847 overwrites
848 \fBauto\fR
849 with
850 \fBnone\fR\&. Use explicit
851 \fBea:sys|ad\fR
852 for read\-only volumes where appropiate\&.
853 .RE
854 .PP
855 sys
856 .RS 4
857 Use filesystem Extended Attributes\&.
858 .RE
859 .PP
860 ad
861 .RS 4
862 Use files in
863 \fI\&.AppleDouble\fR
864 directories\&.
865 .RE
866 .PP
867 none
868 .RS 4
869 No Extended Attributes support\&.
870 .RE
871 .RE
872 .PP
873 maccharset = \fIcharset\fR \fB(V)\fR
874 .RS 4
875 specifies the mac client codepage for this Volume, e\&.g\&. "MAC_ROMAN", "MAC_CYRILLIC"\&. If not specified the setting from
876 afpd\&.conf
877 is inherited\&. This setting is only required if you need volumes, where the mac codepage differs from the one globally set in
878 afpd\&.conf\&.
879 .RE
880 .PP
881 casefold = \fBoption\fR
882 .RS 4
883 The casefold option handles, if the case of filenames should be changed\&. The available options are:
884 .sp
885 \fBtolower\fR
886 \- Lowercases names in both directions\&.
887 .sp
888 \fBtoupper\fR
889 \- Uppercases names in both directions\&.
890 .sp
891 \fBxlatelower\fR
892 \- Client sees lowercase, server sees uppercase\&.
893 .sp
894 \fBxlateupper\fR
895 \- Client sees uppercase, server sees lowercase\&.
896 .RE
897 .PP
898 password = \fIpassword\fR \fB(V)\fR
899 .RS 4
900 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)\&.
901 .RE
902 .PP
903 perm|fperm|dperm:\fImode\fR \fB(V)\fR
904 .RS 4
905 Add(or) with the client requested permissions:
906 \fBperm\fR
907 affects files and directories,
908 \fBfperm\fR
909 is for files only,
910 \fBdperm\fR
911 is for directories only\&. Use with
912 \fBoptions:upriv\fR\&.
913 .PP
914 \fBExample.\ \&Volume for a collaborative workgroup\fR
915 .sp
916 .if n \{\
917 .RS 4
918 .\}
919 .nf
920 /path/to/volume "Workgroup" options:upriv dperm:0770 fperm:0660
921 .fi
922 .if n \{\
923 .RE
924 .\}
925 .RE
926 .PP
927 umask = \fImode\fR \fB(V)\fR
928 .RS 4
929 set perm mask\&. Use with
930 \fBoptions:upriv\fR\&.
931 .RE
932 .PP
933 preexec = \fIcommand\fR \fB(V)\fR
934 .RS 4
935 command to be run when the volume is mounted, ignored for user defined volumes
936 .RE
937 .PP
938 postexec = \fIcommand\fR \fB(V)\fR
939 .RS 4
940 command to be run when the volume is closed, ignored for user defined volumes
941 .RE
942 .PP
943 root_preexec = \fIcommand\fR \fB(V)\fR
944 .RS 4
945 command to be run as root when the volume is mounted, ignored for user defined volumes
946 .RE
947 .PP
948 root_postexec = \fIcommand\fR \fB(V)\fR
949 .RS 4
950 command to be run as root when the volume is closed, ignored for user defined volumes
951 .RE
952 .PP
953 rolist = \fBusers/groups\fR \fB(V)\fR
954 .RS 4
955 Allows certain users and groups to have read\-only access to a share\&. This follows the allow option format\&.
956 .RE
957 .PP
958 rwlist = \fIusers/groups\fR \fB(V)\fR
959 .RS 4
960 Allows certain users and groups to have read/write access to a share\&. This follows the allow option format\&.
961 .RE
962 .PP
963 veto = \fIvetoed names\fR \fB(V)\fR
964 .RS 4
965 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/"\&.
966 .RE
967 .PP
968 volcharset = \fIcharset\fR \fB(V)\fR
969 .RS 4
970 specifies the volume codepage, e\&.g\&. "UTF8", "UTF8\-MAC", "ISO\-8859\-15"\&. Defaults to "UTF8"\&.
971 .RE
972 .SS "Volume options"
973 .PP
974 vol options =
975 \fIoption,[option,\&.\&.\&.]\fR
976 \fB(V)\fR
977 .PP
978 vol options =
979 \fIoption [option \&.\&.\&.]\fR
980 \fB(V)\fR
981 .PP
982 This allows multiple options to be specified in a comma or space delimited format\&. The available options are:
983 .PP
984 searchdb \fB(V)\fR
985 .RS 4
986 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\&.
987 .RE
988 .PP
989 tm \fB(V)\fR
990 .RS 4
991 Enable Time Machine suport for this volume\&.
992 .RE
993 .PP
994 invisibledots \fB(V)\fR
995 .RS 4
996 Use with
997 \fBusedots\fR: make dot files invisible\&.
998 .RE
999 .PP
1000 nonetids \fB(V)\fR
1001 .RS 4
1002 Try to force ACL unawareness on the client\&.
1003 .RE
1004 .PP
1005 preexec_close \fB(V)\fR
1006 .RS 4
1007 a non\-zero return code from preexec close the volume being immediately, preventing clients to mount/see the volume in question\&.
1008 .RE
1009 .PP
1010 ro \fB(V)\fR
1011 .RS 4
1012 Specifies the share as being read only for all users\&. The \&.AppleDB directory has to be writeable, you can use the
1013 \fB\-dbpath\fR
1014 option to relocate it\&. Overwrites
1015 \fBea:auto\fR
1016 with
1017 \fBea:none\fR
1018 .RE
1019 .PP
1020 root_preexec_close \fB(V)\fR
1021 .RS 4
1022 a non\-zero return code from root_preexec closes the volume immediately, preventing clients to mount/see the volume in question\&.
1023 .RE
1024 .PP
1025 upriv \fB(V)\fR
1026 .RS 4
1027 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:
1028 \fBperm|fperm|dperm\fR\&.
1029 .RE
1030 .PP
1031 usedots \fB(V)\fR
1032 .RS 4
1033 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
1034 \fBinvisibledots\fR\&.
1035 .RE
1036 .PP
1037 nodev \fB(V)\fR
1038 .RS 4
1039 always use 0 for device number, helps when the device number is not constant across a reboot, cluster, \&.\&.\&.
1040 .RE
1041 .PP
1042 nohex \fB(V)\fR
1043 .RS 4
1044 Disables :hex translations for anything except dot files\&. This option makes the
1045 \'/\' character illegal\&.
1046 .RE
1047 .PP
1048 nostat \fB(V)\fR
1049 .RS 4
1050 don\'t stat volume path when enumerating volumes list, useful for automounting or volumes created by a preexec script\&.
1051 .RE
1052 .SH "CNID BACKENDS"
1053 .PP
1054 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
1055 \&.AppleDB
1056 folder in the volume root\&.
1057 .PP
1058 cdb
1059 .RS 4
1060 "Concurrent database", backend is based on Sleepycat\'s Berkely DB\&. With this backend several
1061 \fBafpd\fR
1062 deamons access the CNID database directly\&. Berkeley DB locking is used to synchronize access, if more than one
1063 \fBafpd\fR
1064 process is active for a volume\&. The drawback is, that the crash of a single
1065 \fBafpd\fR
1066 process might corrupt the database\&.
1067 .RE
1068 .PP
1069 dbd
1070 .RS 4
1071 Access to the CNID database is restricted to the
1072 \fBcnid_metad\fR
1073 daemon process\&.
1074 \fBafpd\fR
1075 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
1076 \fBcdb\fR
1077 .RE
1078 .PP
1079 last
1080 .RS 4
1081 This backend is an exception, in terms of ID persistency\&. ID\'s are only valid for the current session\&. This is basically what
1082 \fBafpd\fR
1083 did in the 1\&.5 (and 1\&.6) versions\&. This backend is still available, as it is useful for e\&.g\&. sharing cdroms\&.
1084 .sp
1085 \fBWarning\fR: It is
1086 \fINOT\fR
1087 recommended to use this backend for volumes anymore, as
1088 \fBafpd\fR
1089 now relies heavily on a persistent ID database\&. Aliases will likely not work and filename mangling is not supported\&.
1090 .RE
1091 .PP
1092 Even though
1093 \fB\&./configure \-\-help\fR
1094 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\&.
1095 .SH "CHARSET OPTIONS"
1096 .PP
1097 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\&.
1098 .PP
1099 \fBafpd\fR
1100 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
1101 :f0\&. Some special characters will be converted as to :xx notation as well\&. \'/\' will be encoded to
1102 :2f, if
1103 \fBusedots\fR
1104 is not specified, a leading dot \'\&.\' will be encoded as
1105 :2e\&.
1106 .PP
1107 This version now uses UTF\-8 as the default encoding for names\&. Special characters, like \'/\' and a leading \'\&.\' will still be CAP style encoded \&.
1108 .PP
1109 The
1110 \fBvolcharset\fR
1111 option will allow you to select another volume encoding\&. E\&.g\&. for western users another useful setting could be volcharset ISO\-8859\-15\&.
1112 \fBapfd\fR
1113 will accept any
1114 \fBiconv\fR(1)
1115 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,
1116 \fBafpd\fR
1117 will convert the UTF\-8
1118 character to
1119 \fBmaccharset\fR
1120 first\&. If this conversion fails, you\'ll receive a \-50 error on the mac\&.
1121 .PP
1122 \fINote\fR: Whenever you can, please stick with the default UTF\-8 volume format\&.
1123 .SH "SEE ALSO"
1124 .PP
1125 \fBafpd\fR(8),
1126 \fBafppasswd\fR(5),
1127 \fBafp_signature.conf\fR(5),
1128 \fBcnid_metad\fR(8)