]> arthur.barton.de Git - netatalk.git/blob - man/man5/afp.conf.5.tmpl
51970f587fefd7f7c1a9c49a115dae8ad2bc16d6
[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 .SH "SECTION DESCRIPTIONS"
61 .PP
62 Each section in the configuration file (except for the [Global] section) describes a shared resource (known as a
63 \(lqvolume\(rq)\&. The section name is the name of the volume and the parameters within the section define the volume attributes and options\&.
64 .PP
65 There are two special sections, [Global] and [Homes], which are described under
66 \fIspecial sections\fR\&. The following notes apply to ordinary section descriptions\&.
67 .PP
68 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
69 \fBpath\fR
70 option must specify the directory to share\&.
71 .PP
72 Any volume section without
73 \fBpath\fR
74 option is considered a
75 \fIvol preset\fR
76 which can be selected in other volume sections via the
77 \fBvol preset\fR
78 option and constitutes defaults for the volume\&. For any option speficied both in a preset
79 \fIand\fR
80 in a volume section the volume section setting completly substitutes the preset option\&.
81 .PP
82 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\&.
83 .PP
84 The following sample section defines an AFP volume\&. The user has full access to the path
85 /foo/bar\&. The share is accessed via the share name
86 baz:
87 .sp
88 .if n \{\
89 .RS 4
90 .\}
91 .nf
92         [baz]
93         path = /foo/bar
94       
95 .fi
96 .if n \{\
97 .RE
98 .\}
99 .sp
100 .SH "SPECIAL SECTIONS"
101 .SS "The [Global] section"
102 .PP
103 Parameters in this section apply to the server as a whole\&. Parameters denoted by a (G) below are must be set in this section\&.
104 .SS "The [Homes] section"
105 .PP
106 This section enable sharing of the UNIX server user home directories\&. Specifying an optional
107 \fBpath\fR
108 parameter means that not the whole user home will be shared but the subdirectory
109 \fBpath\fR\&. It is neccessary to define the
110 \fBbasedir regex\fR
111 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
112 \fBname\fR
113 can be used to change the AFP volume name which
114 \fIusers\'s home\fR
115 by default\&. See below under VARIABLE SUBSTITUTIONS\&.
116 .PP
117 The following example illustrates this\&. Given all user home directories are stored under
118 /home:
119 .sp
120 .if n \{\
121 .RS 4
122 .\}
123 .nf
124         [Homes]
125         path = afp\-data
126         basedir regex = /home
127       
128 .fi
129 .if n \{\
130 .RE
131 .\}
132 .sp
133 For a user
134 \fIjohn\fR
135 this results in an AFP home volume with a path of
136 /home/john/afp\-data\&.
137 .SH "PARAMETERS"
138 .PP
139 Parameters define the specific attributes of sections\&.
140 .PP
141 Some parameters are specific to the [Global] section (e\&.g\&.,
142 \fIlogtype\fR)\&. All others are permissible only in volume sections\&. The letter
143 \fIG\fR
144 in parentheses indicates that a parameter is specific to the [Global] section\&. The letter
145 \fIV\fR
146 indicates that a parameter can be specified in a volume specific section\&.
147 .SH "VARIABLE SUBSTITUTIONS"
148 .PP
149 You can use variables in both volume path and volume name\&.
150 .sp
151 .RS 4
152 .ie n \{\
153 \h'-04' 1.\h'+01'\c
154 .\}
155 .el \{\
156 .sp -1
157 .IP "  1." 4.2
158 .\}
159 if you specify an unknown variable, it will not get converted\&.
160 .RE
161 .sp
162 .RS 4
163 .ie n \{\
164 \h'-04' 2.\h'+01'\c
165 .\}
166 .el \{\
167 .sp -1
168 .IP "  2." 4.2
169 .\}
170 if you specify a known variable, but that variable doesn\'t have a value, it will get ignored\&.
171 .RE
172 .PP
173 The variables which can be used for substitutions are:
174 .PP
175 $b
176 .RS 4
177 basename
178 .RE
179 .PP
180 $c
181 .RS 4
182 client\'s ip address
183 .RE
184 .PP
185 $d
186 .RS 4
187 volume pathname on server
188 .RE
189 .PP
190 $f
191 .RS 4
192 full name (contents of the gecos field in the passwd file)
193 .RE
194 .PP
195 $g
196 .RS 4
197 group name
198 .RE
199 .PP
200 $h
201 .RS 4
202 hostname
203 .RE
204 .PP
205 $i
206 .RS 4
207 client\'s ip, without port
208 .RE
209 .PP
210 $s
211 .RS 4
212 server name (this can be the hostname)
213 .RE
214 .PP
215 $u
216 .RS 4
217 user name (if guest, it is the user that guest is running as)
218 .RE
219 .PP
220 $v
221 .RS 4
222 volume name
223 .RE
224 .PP
225 $$
226 .RS 4
227 prints dollar sign ($)
228 .RE
229 .PP
230 \fBExample.\ \&Using variable substitution when defining volumes\fR
231 .PP
232 .if n \{\
233 .RS 4
234 .\}
235 .nf
236           [Groupdir for $g]
237           /home/groups/$g
238
239           [$f is the best one]
240           ~
241         
242 .fi
243 .if n \{\
244 .RE
245 .\}
246 .sp
247 We define "groupdirs" for each primary group and use a personalized server name for homedir shares\&.
248 .SH "EXPLANATION OF GLOBAL PARAMETERS"
249 .SS "Authentication Methods"
250 .PP
251 uamlist = \fIuams list\fR \fB(G)\fR
252 .RS 4
253 Comma separated list of UAMs\&. (The default is uams_dhx\&.so,uams_dhx2\&.so)\&.
254 .sp
255 The most commonly used UAMs are:
256 .PP
257 uams_guest\&.so
258 .RS 4
259 allows guest logins
260 .RE
261 .PP
262 uams_clrtxt\&.so
263 .RS 4
264 (uams_pam\&.so or uams_passwd\&.so) Allow logins with passwords transmitted in the clear\&. (legacy)
265 .RE
266 .PP
267 uams_randum\&.so
268 .RS 4
269 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
270 \fB\-passwdfile\fR\&. See
271 \fBafppasswd\fR(1)
272 for details\&. (legacy)
273 .RE
274 .PP
275 uams_dhx\&.so
276 .RS 4
277 (uams_dhx_pam\&.so or uams_dhx_passwd\&.so) Allow Diffie\-Hellman eXchange (DHX) for authentication\&.
278 .RE
279 .PP
280 uams_dhx2\&.so
281 .RS 4
282 (uams_dhx2_pam\&.so or uams_dhx2_passwd\&.so) Allow Diffie\-Hellman eXchange 2 (DHX2) for authentication\&.
283 .RE
284 .PP
285 uam_gss\&.so
286 .RS 4
287 Allow Kerberos V for authentication (optional)
288 .RE
289 .RE
290 .PP
291 uampath = \fIpath\fR \fB(G)\fR
292 .RS 4
293 Sets the default path for UAMs for this server (default is :ETCDIR:/uams)\&.
294 .RE
295 .PP
296 k5keytab = \fIpath\fR \fB(G)\fR, k5service = \fIservice\fR \fB(G)\fR, k5realm = \fIrealm\fR \fB(G)\fR
297 .RS 4
298 These are required if the server supports the Kerberos 5 authentication UAM\&.
299 .RE
300 .PP
301 ntdomain = \fIDOMAIN\fR \fB(G)\fR, ntseparator = \fISEPERATOR\fR \fB(G)\fR
302 .RS 4
303 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\&.
304 .RE
305 .PP
306 adminauthuser = \fIuser\fR \fB(G)\fR
307 .RS 4
308 Specifying eg
309 \fBadminauthuser root\fR
310 whenever a normal user login fails, afpd will try to authenticate as the specified
311 \fBadminauthuser\fR\&. If this succeeds, a normal session is created for the original connecting user\&. Said differently: if you know the password of
312 \fBadminauthuser\fR, you can authenticate as any other user\&.
313 .RE
314 .PP
315 ldap_server = \fIhost\fR \fB(G)\fR
316 .RS 4
317 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\&.
318 .sp
319 You can use
320 \fBafpldaptest\fR(1)
321 to syntactically check your config\&.
322 .RE
323 .PP
324 ldap_auth_method = \fInone|simple|sasl\fR \fB(G)\fR
325 .RS 4
326 Authentication method:
327 \fBnone | simple | sasl\fR
328 .PP
329 none
330 .RS 4
331 anonymous LDAP bind
332 .RE
333 .PP
334 simple
335 .RS 4
336 simple LDAP bind
337 .RE
338 .PP
339 sasl
340 .RS 4
341 SASL\&. Not yet supported !
342 .RE
343 .RE
344 .PP
345 ldap_auth_dn = \fIdn\fR \fB(G)\fR
346 .RS 4
347 Distinguished Name of the user for simple bind\&.
348 .sp
349 .RE
350 .PP
351 ldap_auth_pw = \fIpassword\fR \fB(G)\fR
352 .RS 4
353 Distinguished Name of the user for simple bind\&.
354 .sp
355 .RE
356 .PP
357 ldap_userbase = \fIbase dn\fR \fB(G)\fR
358 .RS 4
359 DN of the user container in LDAP\&.
360 .sp
361 .RE
362 .PP
363 ldap_userscope = \fIscope\fR \fB(G)\fR
364 .RS 4
365 Search scope for user search:
366 \fBbase | one | sub\fR
367 .sp
368 .RE
369 .PP
370 ldap_groupbase = \fIbase dn\fR \fB(G)\fR
371 .RS 4
372 DN of the group container in LDAP\&.
373 .sp
374 .RE
375 .PP
376 ldap_groupscope = \fIscope\fR \fB(G)\fR
377 .RS 4
378 Search scope for user search:
379 \fBbase | one | sub\fR
380 .sp
381 .RE
382 .PP
383 ldap_uuuid_attr = \fIdn\fR \fB(G)\fR
384 .RS 4
385 Name of the LDAP attribute with the UUIDs\&.
386 .sp
387 Note: this is used both for users and groups\&.
388 .sp
389 .RE
390 .PP
391 ldap_name_attr = \fIdn\fR \fB(G)\fR
392 .RS 4
393 Name of the LDAP attribute with the users short name\&.
394 .sp
395 .RE
396 .PP
397 ldap_group_attr = \fIdn\fR \fB(G)\fR
398 .RS 4
399 Name of the LDAP attribute with the groups short name\&.
400 .sp
401 .RE
402 .SS "Codepage Options"
403 .PP
404 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\&.
405 .PP
406 To be able to serve AFP3 and older clients at the same time,
407 \fBafpd\fR
408 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,
409 \fBafpd\fR
410 can detect the codepage a pre AFP3 client uses, you have to specify it using the
411 \fBmaccodepage\fR
412 option\&. The default is MacRoman, which should be fine for most western users\&.
413 .PP
414 As
415 \fBafpd\fR
416 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
417 \fBafpd\fR
418 uses the systems LOCALE, or ASCII if your system doesn\'t support locales\&. You can set the unix codepage using the
419 \fBunixcodepage\fR
420 option\&. If you\'re using extended characters in the configuration files for
421 \fBafpd\fR, make sure your terminal matches the
422 \fBunixcodepage\fR\&.
423 .PP
424 unixcodepage = \fICODEPAGE\fR \fB(G)\fR
425 .RS 4
426 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\&.
427 .RE
428 .PP
429 maccodepage = \fICODEPAGE\fR \fB(G)\fR
430 .RS 4
431 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\&.
432 .RE
433 .SS "Password Options"
434 .PP
435 passwdfile = \fIpath\fR \fB(G)\fR
436 .RS 4
437 Sets the path to the Randnum UAM passwd file for this server (default is :ETCDIR:/afppasswd)\&.
438 .RE
439 .PP
440 passwdminlen = \fInumber\fR \fB(G)\fR
441 .RS 4
442 Sets the minimum password length, if supported by the UAM
443 .RE
444 .SS "Network Options"
445 .PP
446 fqdn = \fIname:port\fR \fB(G)\fR
447 .RS 4
448 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\&.
449 .RE
450 .PP
451 hostname = \fIname\fR \fB(G)\fR
452 .RS 4
453 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
454 \fBafp listen\fR\&.
455 .RE
456 .PP
457 afp listen = \fIip address[:port][,ip adress[:port], \&.\&.\&.]\fR \fB(G)\fR
458 .RS 4
459 Specifies the IP address that the server should advertise
460 \fBand\fR
461 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\&.
462 .RE
463 .PP
464 cnid listen = \fIip address[:port][,ip adress[:port], \&.\&.\&.]\fR \fB(G)\fR
465 .RS 4
466 Specifies the IP address that the CNID server should listen on\&. The default is
467 \fBlocalhost:4700\fR\&.
468 .RE
469 .PP
470 afp port = \fIport number\fR \fB(G)\fR
471 .RS 4
472 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
473 \fBafp listen\fR
474 option\&.
475 .RE
476 .PP
477 server_quantum = \fInumber\fR \fB(G)\fR
478 .RS 4
479 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
480 .RE
481 .PP
482 dsireadbuf = \fInumber\fR \fB(G)\fR
483 .RS 4
484 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\&.
485 \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)\&.
486 .RE
487 .PP
488 tcprcvbuf = \fInumber\fR \fB(G)\fR
489 .RS 4
490 Try to set TCP receive buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
491 .RE
492 .PP
493 tcpsndbuf = \fInumber\fR \fB(G)\fR
494 .RS 4
495 Try to set TCP send buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
496 .RE
497 .SS "Miscellaneous Options"
498 .PP
499 basedir regex = \fIregex\fR \fB(H)\fR
500 .RS 4
501 Regular expression which matches the parent directory of the user homes\&. In the simple case this is just a path ie
502 \fBbasedir regex = /home\fR
503 .RE
504 .PP
505 name = \fIname\fR \fB(H)\fR
506 .RS 4
507 AFP user home volume name\&. The default is
508 \fIusers\'s home\fR\&.
509 .RE
510 .PP
511 vol preset = \fIname\fR \fB(G)/(V)\fR
512 .RS 4
513 Use section
514 \fBname\fR
515 as option preset for all volumes (when set in the global section) or for one volume (when set in that volume\'s section)\&.
516 .RE
517 .PP
518 admingroup = \fIgroup\fR \fB(G)\fR
519 .RS 4
520 Allows users of a certain group to be seen as the superuser when they log in\&. This option is disabled by default\&.
521 .RE
522 .PP
523 cnidserver = \fIipaddress[:port]\fR \fB(G)/(V)\fR
524 .RS 4
525 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\&.\-
526 .RE
527 .PP
528 dircachesize = \fInumber\fR \fB(G)\fR
529 .RS 4
530 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\&.
531 .sp
532 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\&.
533 .RE
534 .PP
535 fcelistener = \fIhost[:port]\fR \fB(G)\fR
536 .RS 4
537 Enables sending FCE events to the specified
538 \fIhost\fR, default
539 \fIport\fR
540 is 12250 if not specified\&. Specifying mutliple listeners is done by having this option once for each of them\&.
541 .RE
542 .PP
543 fceevents = \fIfmod,fdel,ddel,fcre,dcre,tmsz\fR \fB(G)\fR
544 .RS 4
545 Speficies which FCE events are active, default is
546 \fIfmod,fdel,ddel,fcre,dcre\fR\&.
547 .RE
548 .PP
549 fcecoalesce = \fIall|delete|create\fR \fB(G)\fR
550 .RS 4
551 Coalesce FCE events\&.
552 .RE
553 .PP
554 fceholdfmod = \fIseconds\fR \fB(G)\fR
555 .RS 4
556 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\&.
557 .RE
558 .PP
559 guestname = \fIname\fR \fB(G)\fR
560 .RS 4
561 Specifies the user that guests should use (default is "nobody")\&. The name should be quoted\&.
562 .RE
563 .PP
564 loginmesg = \fImessage\fR \fB(G)\fR
565 .RS 4
566 Sets a message to be displayed when clients logon to the server\&. The message should be in
567 \fBunixcodepage\fR
568 and should be quoted\&. Extended characters are allowed\&.
569 .RE
570 .PP
571 mimicmodel = \fImodel\fR \fB(G)\fR
572 .RS 4
573 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\&.
574 .RE
575 .PP
576 signature = { user:<text> | auto } \fB(G)\fR
577 .RS 4
578 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
579 :ETCDIR:/afp_signature\&.conf
580 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\&.
581 .PP
582 \fBExample.\ \&Three server definitions using 2 different server signatures\fR
583 .sp
584 .if n \{\
585 .RS 4
586 .\}
587 .nf
588 first \-signature user:USERS
589                   second \-signature user:USERS
590                   third \-signature user:ADMINS
591 .fi
592 .if n \{\
593 .RE
594 .\}
595
596
597 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\&.
598 .RE
599 .PP
600 volnamelen = \fInumber\fR \fB(G)\fR
601 .RS 4
602 Max length of UTF8\-MAC volume name for Mac OS X\&. Note that Hangul is especially sensitive to this\&.
603 .sp
604 .if n \{\
605 .RS 4
606 .\}
607 .nf
608 73:  limit of Mac OS X 10\&.1
609                 80:  limit for Mac OS X 10\&.4/10\&.5 (default)
610                 255: limit of spec
611 .fi
612 .if n \{\
613 .RE
614 .\}
615 .sp
616 Mac OS 9 and earlier are not influenced by this, because Maccharset volume name is always limitted to 27 bytes\&.
617 .RE
618 .SS "Logging Options"
619 .PP
620 logfile = \fIfile\fR \fB(G)\fR
621 .RS 4
622 If not specified Netatalk logs to syslogs daemon facilify\&. Otherwise it logs to
623 \fBlogfile\fR\&.
624 .RE
625 .PP
626 loglevel = \fItype:level,[type:level, \&.\&.\&.]\fR \fB(G)\fR
627 .RS 4
628 Specify that any message of a loglevel up to the given
629 \fBloglevel\fR
630 should be logged\&.
631 .sp
632 By default afpd logs to syslog with a default logging setup equivalent to
633 \fBdefault:note\fR
634 .sp
635 logtypes: default, afpdaemon, logger, uamsdaemon
636 .sp
637 loglevels: severe, error, warn, note, info, debug, debug6, debug7, debug8, debug9, maxdebug
638 .if n \{\
639 .sp
640 .\}
641 .RS 4
642 .it 1 an-trap
643 .nr an-no-space-flag 1
644 .nr an-break-flag 1
645 .br
646 .ps +1
647 \fBNote\fR
648 .ps -1
649 .br
650 Both logtype and loglevels are case insensitive\&.
651 .sp .5v
652 .RE
653 .RE
654 .SS "Global Options"
655 .PP
656 options =
657 \fIoption,[option,\&.\&.\&.]\fR
658 \fB(G)\fR
659 .PP
660 options =
661 \fIoption [option \&.\&.\&.]\fR
662 \fB(G)\fR
663 .PP
664 This allows multiple options to be specified in a comma or space delimited format\&. The available options are:
665 .PP
666 [no]savepassword \fB(G)\fR
667 .RS 4
668 Enables or disables the ability of clients to save passwords locally
669 .RE
670 .PP
671 [no]setpassword \fB(G)\fR
672 .RS 4
673 Enables or disables the ability of clients to change their passwords via chooser or the "connect to server" dialog
674 .RE
675 .PP
676 advertise_ssh \fB(G)\fR
677 .RS 4
678 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
679 \fBsshd\fR(8)
680 on the server to let things work\&.
681 .if n \{\
682 .sp
683 .\}
684 .RS 4
685 .it 1 an-trap
686 .nr an-no-space-flag 1
687 .nr an-break-flag 1
688 .br
689 .ps +1
690 \fBNote\fR
691 .ps -1
692 .br
693 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\&.
694 .sp .5v
695 .RE
696 .RE
697 .PP
698 nozeroconf \fB(G)\fR
699 .RS 4
700 Disable automatic Zeroconf
701 service registration if support was compiled in\&.
702 .RE
703 .PP
704 client_polling \fB(G)\fR
705 .RS 4
706 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\&.
707 \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!
708 .if n \{\
709 .sp
710 .\}
711 .RS 4
712 .it 1 an-trap
713 .nr an-no-space-flag 1
714 .nr an-break-flag 1
715 .br
716 .ps +1
717 \fBNote\fR
718 .ps -1
719 .br
720 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\&.
721 .sp .5v
722 .RE
723 .RE
724 .PP
725 [no]icon \fB(G)\fR
726 .RS 4
727 [Don\'t] Use the platform\-specific icon\&. Recent Mac OS don\'t display it any longer\&.
728 .RE
729 .PP
730 keepsessions \fB(G)\fR
731 .RS 4
732 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!
733 .RE
734 .PP
735 sleep \fInumber\fR \fB(G)\fR
736 .RS 4
737 AFP 3\&.x waits
738 \fInumber\fR
739 hours before disconnecting clients in sleep mode\&. Default is 10 hours\&.
740 .RE
741 .PP
742 noacl2maccess \fB(G)\fR
743 .RS 4
744 Don\'t map filesystem ACLs to effective permissions\&.
745 .RE
746 .SS "Debug Parameters"
747 .PP
748 These options are useful for debugging only\&.
749 .PP
750 tickleval = \fInumber\fR \fB(G)\fR
751 .RS 4
752 Sets the tickle timeout interval (in seconds)\&. Defaults to 30\&.
753 .RE
754 .PP
755 timeout = \fInumber\fR \fB(G)\fR
756 .RS 4
757 Specify the number of tickles to send before timing out a connection\&. The default is 4, therefore a connection will timeout after 2 minutes\&.
758 .RE
759 .SH "EXPLANATION OF VOLUME PARAMETERS"
760 .SS "Parameters"
761 .PP
762 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
763 \':\'
764 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
765 .PP
766 path = \fIPATH\fR \fB(V)\fR
767 .RS 4
768 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\&.
769 .sp
770 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
771 \':\'
772 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
773 .RE
774 .PP
775 adouble = \fIea|v2\fR \fB(V)\fR
776 .RS 4
777 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
778 \fBea\fR\&.
779 .RE
780 .PP
781 volsizelimit = \fIsize in MiB\fR \fB(V)\fR
782 .RS 4
783 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\&.
784 \fBIMPORTANT: \fR
785 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\&.
786 .RE
787 .PP
788 allow = \fIusers/groups\fR \fB(V)\fR
789 .RS 4
790 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
791 .RE
792 .PP
793 deny = \fIusers/groups\fR \fB(V)\fR
794 .RS 4
795 The deny option specifies users and groups who are not allowed access to the share\&. It follows the same format as the allow option\&.
796 .RE
797 .PP
798 allowed_hosts = \fIIP host address/IP netmask bits[, \&.\&.\&. ]\fR \fB(V)\fR
799 .RS 4
800 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\&.
801 .sp
802 Example: allowed_hosts:10\&.1\&.0\&.0/16,10\&.2\&.1\&.100,2001:0db8:1234::/48
803 .RE
804 .PP
805 denied_hosts = \fIIP host address/IP netmask bits[, \&.\&.\&.]\fR \fB(V)\fR
806 .RS 4
807 Listed hosts and nets are rejected, all others are allowed\&.
808 .sp
809 Example: denied_hosts: 192\&.168\&.100/24,10\&.1\&.1\&.1,2001:db8::1428:57ab
810 .RE
811 .PP
812 cnidscheme = \fIbackend\fR \fB(V)\fR
813 .RS 4
814 set the CNID backend to be used for the volume, default is [:DEFAULT_CNID_SCHEME:] available schemes: [:COMPILED_BACKENDS:]
815 .RE
816 .PP
817 dbpath = \fIpath\fR \fB(V)\fR
818 .RS 4
819 Sets the database information to be stored in path\&. You have to specifiy a writable location, even if the volume is read only\&.
820 .RE
821 .PP
822 cnidserver = \fIhost[:port]\fR \fB(V)\fR
823 .RS 4
824 Query this servername or IP address (default:\fIlocalhost\fR) and port (default:
825 \fI4700\fR) for CNIDs\&. Only used with CNID backend "\fIdbd\fR"\&. This option here overrides any setting from
826 afpd\&.conf:\fBcnidserver\fR\&.
827 .RE
828 .PP
829 ea = \fInone|auto|sys|ad\fR
830 .RS 4
831 Specify how Extended Attributes
832 are stored\&.
833 \fBauto\fR
834 is the default\&.
835 .PP
836 auto
837 .RS 4
838 Try
839 \fBsys\fR
840 (by setting an EA on the shared directory itself), fallback to
841 \fBad\fR\&. Requires writeable volume for perfoming test\&.
842 \fBoptions:ro\fR
843 overwrites
844 \fBauto\fR
845 with
846 \fBnone\fR\&. Use explicit
847 \fBea:sys|ad\fR
848 for read\-only volumes where appropiate\&.
849 .RE
850 .PP
851 sys
852 .RS 4
853 Use filesystem Extended Attributes\&.
854 .RE
855 .PP
856 ad
857 .RS 4
858 Use files in
859 \fI\&.AppleDouble\fR
860 directories\&.
861 .RE
862 .PP
863 none
864 .RS 4
865 No Extended Attributes support\&.
866 .RE
867 .RE
868 .PP
869 maccharset = \fIcharset\fR \fB(V)\fR
870 .RS 4
871 specifies the mac client codepage for this Volume, e\&.g\&. "MAC_ROMAN", "MAC_CYRILLIC"\&. If not specified the setting from
872 afpd\&.conf
873 is inherited\&. This setting is only required if you need volumes, where the mac codepage differs from the one globally set in
874 afpd\&.conf\&.
875 .RE
876 .PP
877 casefold = \fBoption\fR
878 .RS 4
879 The casefold option handles, if the case of filenames should be changed\&. The available options are:
880 .sp
881 \fBtolower\fR
882 \- Lowercases names in both directions\&.
883 .sp
884 \fBtoupper\fR
885 \- Uppercases names in both directions\&.
886 .sp
887 \fBxlatelower\fR
888 \- Client sees lowercase, server sees uppercase\&.
889 .sp
890 \fBxlateupper\fR
891 \- Client sees uppercase, server sees lowercase\&.
892 .RE
893 .PP
894 password = \fIpassword\fR \fB(V)\fR
895 .RS 4
896 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)\&.
897 .RE
898 .PP
899 perm|fperm|dperm:\fImode\fR \fB(V)\fR
900 .RS 4
901 Add(or) with the client requested permissions:
902 \fBperm\fR
903 affects files and directories,
904 \fBfperm\fR
905 is for files only,
906 \fBdperm\fR
907 is for directories only\&. Use with
908 \fBoptions:upriv\fR\&.
909 .PP
910 \fBExample.\ \&Volume for a collaborative workgroup\fR
911 .sp
912 .if n \{\
913 .RS 4
914 .\}
915 .nf
916 /path/to/volume "Workgroup" options:upriv dperm:0770 fperm:0660
917 .fi
918 .if n \{\
919 .RE
920 .\}
921 .RE
922 .PP
923 umask = \fImode\fR \fB(V)\fR
924 .RS 4
925 set perm mask\&. Use with
926 \fBoptions:upriv\fR\&.
927 .RE
928 .PP
929 preexec = \fIcommand\fR \fB(V)\fR
930 .RS 4
931 command to be run when the volume is mounted, ignored for user defined volumes
932 .RE
933 .PP
934 postexec = \fIcommand\fR \fB(V)\fR
935 .RS 4
936 command to be run when the volume is closed, ignored for user defined volumes
937 .RE
938 .PP
939 root_preexec = \fIcommand\fR \fB(V)\fR
940 .RS 4
941 command to be run as root when the volume is mounted, ignored for user defined volumes
942 .RE
943 .PP
944 root_postexec = \fIcommand\fR \fB(V)\fR
945 .RS 4
946 command to be run as root when the volume is closed, ignored for user defined volumes
947 .RE
948 .PP
949 rolist = \fBusers/groups\fR \fB(V)\fR
950 .RS 4
951 Allows certain users and groups to have read\-only access to a share\&. This follows the allow option format\&.
952 .RE
953 .PP
954 rwlist = \fIusers/groups\fR \fB(V)\fR
955 .RS 4
956 Allows certain users and groups to have read/write access to a share\&. This follows the allow option format\&.
957 .RE
958 .PP
959 veto = \fIvetoed names\fR \fB(V)\fR
960 .RS 4
961 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/"\&.
962 .RE
963 .PP
964 volcharset = \fIcharset\fR \fB(V)\fR
965 .RS 4
966 specifies the volume codepage, e\&.g\&. "UTF8", "UTF8\-MAC", "ISO\-8859\-15"\&. Defaults to "UTF8"\&.
967 .RE
968 .SS "Volume options"
969 .PP
970 vol options =
971 \fIoption,[option,\&.\&.\&.]\fR
972 \fB(V)\fR
973 .PP
974 vol options =
975 \fIoption [option \&.\&.\&.]\fR
976 \fB(V)\fR
977 .PP
978 This allows multiple options to be specified in a comma or space delimited format\&. The available options are:
979 .PP
980 searchdb \fB(V)\fR
981 .RS 4
982 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\&.
983 .RE
984 .PP
985 tm \fB(V)\fR
986 .RS 4
987 Enable Time Machine suport for this volume\&.
988 .RE
989 .PP
990 invisibledots \fB(V)\fR
991 .RS 4
992 Use with
993 \fBusedots\fR: make dot files invisible\&.
994 .RE
995 .PP
996 nonetids \fB(V)\fR
997 .RS 4
998 Try to force ACL unawareness on the client\&.
999 .RE
1000 .PP
1001 preexec_close \fB(V)\fR
1002 .RS 4
1003 a non\-zero return code from preexec close the volume being immediately, preventing clients to mount/see the volume in question\&.
1004 .RE
1005 .PP
1006 ro \fB(V)\fR
1007 .RS 4
1008 Specifies the share as being read only for all users\&. The \&.AppleDB directory has to be writeable, you can use the
1009 \fB\-dbpath\fR
1010 option to relocate it\&. Overwrites
1011 \fBea:auto\fR
1012 with
1013 \fBea:none\fR
1014 .RE
1015 .PP
1016 root_preexec_close \fB(V)\fR
1017 .RS 4
1018 a non\-zero return code from root_preexec closes the volume immediately, preventing clients to mount/see the volume in question\&.
1019 .RE
1020 .PP
1021 upriv \fB(V)\fR
1022 .RS 4
1023 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:
1024 \fBperm|fperm|dperm\fR\&.
1025 .RE
1026 .PP
1027 usedots \fB(V)\fR
1028 .RS 4
1029 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
1030 \fBinvisibledots\fR\&.
1031 .RE
1032 .PP
1033 nodev \fB(V)\fR
1034 .RS 4
1035 always use 0 for device number, helps when the device number is not constant across a reboot, cluster, \&.\&.\&.
1036 .RE
1037 .PP
1038 nohex \fB(V)\fR
1039 .RS 4
1040 Disables :hex translations for anything except dot files\&. This option makes the
1041 \'/\' character illegal\&.
1042 .RE
1043 .PP
1044 nostat \fB(V)\fR
1045 .RS 4
1046 don\'t stat volume path when enumerating volumes list, useful for automounting or volumes created by a preexec script\&.
1047 .RE
1048 .SH "CNID BACKENDS"
1049 .PP
1050 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
1051 \&.AppleDB
1052 folder in the volume root\&.
1053 .PP
1054 cdb
1055 .RS 4
1056 "Concurrent database", backend is based on Sleepycat\'s Berkely DB\&. With this backend several
1057 \fBafpd\fR
1058 deamons access the CNID database directly\&. Berkeley DB locking is used to synchronize access, if more than one
1059 \fBafpd\fR
1060 process is active for a volume\&. The drawback is, that the crash of a single
1061 \fBafpd\fR
1062 process might corrupt the database\&.
1063 .RE
1064 .PP
1065 dbd
1066 .RS 4
1067 Access to the CNID database is restricted to the
1068 \fBcnid_metad\fR
1069 daemon process\&.
1070 \fBafpd\fR
1071 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
1072 \fBcdb\fR
1073 .RE
1074 .PP
1075 last
1076 .RS 4
1077 This backend is an exception, in terms of ID persistency\&. ID\'s are only valid for the current session\&. This is basically what
1078 \fBafpd\fR
1079 did in the 1\&.5 (and 1\&.6) versions\&. This backend is still available, as it is useful for e\&.g\&. sharing cdroms\&.
1080 .sp
1081 \fBWarning\fR: It is
1082 \fINOT\fR
1083 recommended to use this backend for volumes anymore, as
1084 \fBafpd\fR
1085 now relies heavily on a persistent ID database\&. Aliases will likely not work and filename mangling is not supported\&.
1086 .RE
1087 .PP
1088 Even though
1089 \fB\&./configure \-\-help\fR
1090 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\&.
1091 .SH "CHARSET OPTIONS"
1092 .PP
1093 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\&.
1094 .PP
1095 \fBafpd\fR
1096 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
1097 :f0\&. Some special characters will be converted as to :xx notation as well\&. \'/\' will be encoded to
1098 :2f, if
1099 \fBusedots\fR
1100 is not specified, a leading dot \'\&.\' will be encoded as
1101 :2e\&.
1102 .PP
1103 This version now uses UTF\-8 as the default encoding for names\&. Special characters, like \'/\' and a leading \'\&.\' will still be CAP style encoded \&.
1104 .PP
1105 The
1106 \fBvolcharset\fR
1107 option will allow you to select another volume encoding\&. E\&.g\&. for western users another useful setting could be volcharset ISO\-8859\-15\&.
1108 \fBapfd\fR
1109 will accept any
1110 \fBiconv\fR(1)
1111 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,
1112 \fBafpd\fR
1113 will convert the UTF\-8
1114 character to
1115 \fBmaccharset\fR
1116 first\&. If this conversion fails, you\'ll receive a \-50 error on the mac\&.
1117 .PP
1118 \fINote\fR: Whenever you can, please stick with the default UTF\-8 volume format\&.
1119 .SH "SEE ALSO"
1120 .PP
1121 \fBafpd\fR(8),
1122 \fBafppasswd\fR(5),
1123 \fBafp_signature.conf\fR(5),
1124 \fBcnid_metad\fR(8)