]> arthur.barton.de Git - netatalk.git/blob - man/man5/afp.conf.5.tmpl
4a41167b0eb1b8c0e2bb301860736f5ec2f871e1
[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.78.0 <http://docbook.sf.net/>
5 .\"      Date: 06 Dez 2012
6 .\"    Manual: Netatalk 3.0
7 .\"    Source: Netatalk 3.0
8 .\"  Language: English
9 .\"
10 .TH "AFP\&.CONF" "5" "06 Dez 2012" "Netatalk 3.0" "Netatalk 3.0"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 afp.conf \- Netatalk configuration file
32 .SH "SYNOPSIS"
33 .PP
34 The
35 afp\&.conf
36 file is the configuration file for the
37 \fBNetatalk\fR
38 AFP file server\&.
39 .PP
40 All AFP specific configuration and AFP volume definitions are done via this file\&.
41 .SH "FILE FORMAT"
42 .PP
43 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:
44 .sp
45 .if n \{\
46 .RS 4
47 .\}
48 .nf
49     \fIname\fR = \fIvalue \fR
50     
51 .fi
52 .if n \{\
53 .RE
54 .\}
55 .PP
56 The file is line\-based \- that is, each newline\-terminated line represents either a comment, a section name or a parameter\&.
57 .PP
58 Section and parameter names are case sensitive\&.
59 .PP
60 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\&.
61 .PP
62 Any line beginning with a semicolon (\(lq;\(rq) or a hash (\(lq#\(rq) character is ignored, as are lines containing only whitespace\&.
63 .PP
64 Any line ending in a
65 \(lq \e \(rq
66 is continued on the next line in the customary UNIX fashion\&.
67 .PP
68 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\&.
69 .PP
70 The parameter
71 \fBinclude = \fR\fB\fIpath\fR\fR
72 allows you to include one config file inside another\&. The file is included literally, as though typed in place\&. Nested includes are not supported\&.
73 .SH "SECTION DESCRIPTIONS"
74 .PP
75 Each section in the configuration file (except for the [Global] section) describes a shared resource (known as a
76 \(lqvolume\(rq)\&. The section name is the name of the volume and the parameters within the section define the volume attributes and options\&.
77 .PP
78 There are two special sections, [Global] and [Homes], which are described under
79 \fIspecial sections\fR\&. The following notes apply to ordinary section descriptions\&.
80 .PP
81 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
82 \fBpath\fR
83 option must specify the directory to share\&.
84 .PP
85 Any volume section without
86 \fBpath\fR
87 option is considered a
88 \fIvol preset\fR
89 which can be selected in other volume sections via the
90 \fBvol preset\fR
91 option and constitutes defaults for the volume\&. For any option speficied both in a preset
92 \fIand\fR
93 in a volume section the volume section setting completly substitutes the preset option\&.
94 .PP
95 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\&.
96 .PP
97 The following sample section defines an AFP volume\&. The user has full access to the path
98 /foo/bar\&. The share is accessed via the share name
99 baz:
100 .sp
101 .if n \{\
102 .RS 4
103 .\}
104 .nf
105  [baz]
106     path = /foo/bar 
107 .fi
108 .if n \{\
109 .RE
110 .\}
111 .SH "SPECIAL SECTIONS"
112 .SS "The [Global] section"
113 .PP
114 Parameters in this section apply to the server as a whole\&. Parameters denoted by a (G) below are must be set in this section\&.
115 .SS "The [Homes] section"
116 .PP
117 This section enable sharing of the UNIX server user home directories\&. Specifying an optional
118 \fBpath\fR
119 parameter means that not the whole user home will be shared but the subdirectory
120 \fBpath\fR\&. It is neccessary to define the
121 \fBbasedir regex\fR
122 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
123 \fBhome name\fR
124 can be used to change the AFP volume name which
125 \fI$u\*(Aqs home\fR
126 by default\&. See below under VARIABLE SUBSTITUTIONS\&.
127 .PP
128 The following example illustrates this\&. Given all user home directories are stored under
129 /home:
130 .sp
131 .if n \{\
132 .RS 4
133 .\}
134 .nf
135  [Homes] path = afp\-data basedir regex = /home
136       
137 .fi
138 .if n \{\
139 .RE
140 .\}
141 .sp
142 For a user
143 \fIjohn\fR
144 this results in an AFP home volume with a path of
145 /home/john/afp\-data\&.
146 .SH "PARAMETERS"
147 .PP
148 Parameters define the specific attributes of sections\&.
149 .PP
150 Some parameters are specific to the [Global] section (e\&.g\&.,
151 \fIlog type\fR)\&. All others are permissible only in volume sections\&. The letter
152 \fIG\fR
153 in parentheses indicates that a parameter is specific to the [Global] section\&. The letter
154 \fIV\fR
155 indicates that a parameter can be specified in a volume specific section\&.
156 .SH "VARIABLE SUBSTITUTIONS"
157 .PP
158 You can use variables in volume names\&. The use of variables in paths is not supported for now\&.
159 .sp
160 .RS 4
161 .ie n \{\
162 \h'-04' 1.\h'+01'\c
163 .\}
164 .el \{\
165 .sp -1
166 .IP "  1." 4.2
167 .\}
168 if you specify an unknown variable, it will not get converted\&.
169 .RE
170 .sp
171 .RS 4
172 .ie n \{\
173 \h'-04' 2.\h'+01'\c
174 .\}
175 .el \{\
176 .sp -1
177 .IP "  2." 4.2
178 .\}
179 if you specify a known variable, but that variable doesn\*(Aqt have a value, it will get ignored\&.
180 .RE
181 .PP
182 The variables which can be used for substitutions are:
183 .PP
184 $b
185 .RS 4
186 basename
187 .RE
188 .PP
189 $c
190 .RS 4
191 client\*(Aqs ip address
192 .RE
193 .PP
194 $d
195 .RS 4
196 volume pathname on server
197 .RE
198 .PP
199 $f
200 .RS 4
201 full name (contents of the gecos field in the passwd file)
202 .RE
203 .PP
204 $g
205 .RS 4
206 group name
207 .RE
208 .PP
209 $h
210 .RS 4
211 hostname
212 .RE
213 .PP
214 $i
215 .RS 4
216 client\*(Aqs ip, without port
217 .RE
218 .PP
219 $s
220 .RS 4
221 server name (this can be the hostname)
222 .RE
223 .PP
224 $u
225 .RS 4
226 user name (if guest, it is the user that guest is running as)
227 .RE
228 .PP
229 $v
230 .RS 4
231 volume name
232 .RE
233 .PP
234 $$
235 .RS 4
236 prints dollar sign ($)
237 .RE
238 .SH "EXPLANATION OF GLOBAL PARAMETERS"
239 .SS "Authentication Options"
240 .PP
241 ad domain = \fIDOMAIN\fR \fB(G)\fR
242 .RS 4
243 Append @DOMAIN to username when authenticating\&. Useful in Active Directory environments that otherwise would require the user to enter the full user@domain string\&.
244 .RE
245 .PP
246 admin auth user = \fIuser\fR \fB(G)\fR
247 .RS 4
248 Specifying eg "\fBadmin auth user = root\fR" whenever a normal user login fails, afpd will try to authenticate as the specified
249 \fBadmin auth user\fR\&. If this succeeds, a normal session is created for the original connecting user\&. Said differently: if you know the password of
250 \fBadmin auth user\fR, you can authenticate as any other user\&.
251 .RE
252 .PP
253 k5 keytab = \fIpath\fR \fB(G)\fR, k5 service = \fIservice\fR \fB(G)\fR, k5 realm = \fIrealm\fR \fB(G)\fR
254 .RS 4
255 These are required if the server supports the Kerberos 5 authentication UAM\&.
256 .RE
257 .PP
258 nt domain = \fIDOMAIN\fR \fB(G)\fR, nt separator = \fISEPERATOR\fR \fB(G)\fR
259 .RS 4
260 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\&.
261 .RE
262 .PP
263 save password = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
264 .RS 4
265 Enables or disables the ability of clients to save passwords locally\&.
266 .RE
267 .PP
268 set password = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
269 .RS 4
270 Enables or disables the ability of clients to change their passwords via chooser or the "connect to server" dialog\&.
271 .RE
272 .PP
273 uam list = \fIuam list\fR \fB(G)\fR
274 .RS 4
275 Space or comma separated list of UAMs\&. (The default is "uams_dhx\&.so uams_dhx2\&.so")\&.
276 .sp
277 The most commonly used UAMs are:
278 .PP
279 uams_guest\&.so
280 .RS 4
281 allows guest logins
282 .RE
283 .PP
284 uams_clrtxt\&.so
285 .RS 4
286 (uams_pam\&.so or uams_passwd\&.so) Allow logins with passwords transmitted in the clear\&. (legacy)
287 .RE
288 .PP
289 uams_randum\&.so
290 .RS 4
291 allows Random Number and Two\-Way Random Number Exchange for authentication (requires a separate file containing the passwords, either :ETCDIR:/afppasswd file or the one specified via "\fBpasswd file\fR"\&. See
292 \fBafppasswd\fR(1)
293 for details\&. (legacy)
294 .RE
295 .PP
296 uams_dhx\&.so
297 .RS 4
298 (uams_dhx_pam\&.so or uams_dhx_passwd\&.so) Allow Diffie\-Hellman eXchange (DHX) for authentication\&.
299 .RE
300 .PP
301 uams_dhx2\&.so
302 .RS 4
303 (uams_dhx2_pam\&.so or uams_dhx2_passwd\&.so) Allow Diffie\-Hellman eXchange 2 (DHX2) for authentication\&.
304 .RE
305 .PP
306 uam_gss\&.so
307 .RS 4
308 Allow Kerberos V for authentication (optional)
309 .RE
310 .RE
311 .PP
312 uam path = \fIpath\fR \fB(G)\fR
313 .RS 4
314 Sets the default path for UAMs for this server (default is :LIBDIR:/netatalk)\&.
315 .RE
316 .SS "Charset Options"
317 .PP
318 With OS X Apple introduced the AFP3 protocol\&. One of the big changes was, that AFP3 uses Unicode names encoded as Decomposed UTF\-8 (UTF8\-MAC)\&. Previous AFP/OS versions used charsets like MacRoman, MacCentralEurope, etc\&.
319 .PP
320 To be able to serve AFP3 and older clients at the same time,
321 \fBafpd\fR
322 needs to be able to convert between UTF\-8 and Mac charsets\&. Even OS X clients partly still rely on the mac charset\&. As there\*(Aqs no way,
323 \fBafpd\fR
324 can detect the codepage a pre AFP3 client uses, you have to specify it using the
325 \fBmac charset\fR
326 option\&. The default is MacRoman, which should be fine for most western users\&.
327 .PP
328 As
329 \fBafpd\fR
330 needs to interact with UNIX operating system as well, it need\*(Aqs to be able to convert from UTF8\-MAC / Mac charset to the UNIX charset\&. By default
331 \fBafpd\fR
332 uses
333 \fIUTF8\fR\&. You can set the UNIX charset using the
334 \fBunix charset\fR
335 option\&. If you\*(Aqre using extended characters in the configuration files for
336 \fBafpd\fR, make sure your terminal matches the
337 \fBunix charset\fR\&.
338 .PP
339 mac charset = \fICHARSET\fR \fB(G)/(V)\fR
340 .RS 4
341 Specifies the Mac clients charset, e\&.g\&.
342 \fIMAC_ROMAN\fR\&. This is used to convert strings and filenames to the clients codepage for OS9 and Classic, i\&.e\&. for authentication and AFP messages (SIGUSR2 messaging)\&. This will also be the default for the volumes
343 \fBmac charset\fR\&. Defaults to
344 \fIMAC_ROMAN\fR\&.
345 .RE
346 .PP
347 unix charset = \fICHARSET\fR \fB(G)\fR
348 .RS 4
349 Specifies the servers unix charset, e\&.g\&.
350 \fIISO\-8859\-15\fR
351 or
352 \fIEUC\-JP\fR\&. This is used to convert strings to/from the systems locale, e\&.g\&. for authenthication, server messages and volume names\&. If
353 \fILOCALE\fR
354 is set, the systems locale is used\&. Defaults to
355 \fIUTF8\fR\&.
356 .RE
357 .PP
358 vol charset = \fICHARSET\fR \fB(G)/(V)\fR
359 .RS 4
360 Specifies the encoding of the volumes filesystem\&. By default, it is the same as
361 \fBunix charset\fR\&.
362 .RE
363 .SS "Password Options"
364 .PP
365 passwd file = \fIpath\fR \fB(G)\fR
366 .RS 4
367 Sets the path to the Randnum UAM passwd file for this server (default is :ETCDIR:/afppasswd)\&.
368 .RE
369 .PP
370 passwd minlen = \fInumber\fR \fB(G)\fR
371 .RS 4
372 Sets the minimum password length, if supported by the UAM
373 .RE
374 .SS "Network Options"
375 .PP
376 advertise ssh = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
377 .RS 4
378 Allows old Mac OS X clients (10\&.3\&.3\-10\&.4) to automagically establish a tunneled AFP connection through SSH\&. If this option is set, the server\*(Aqs answers to client\*(Aqs FPGetSrvrInfo requests contain an additional entry\&. It depends on both client\*(Aqs settings and a correctly configured and running
379 \fBsshd\fR(8)
380 on the server to let things work\&.
381 .if n \{\
382 .sp
383 .\}
384 .RS 4
385 .it 1 an-trap
386 .nr an-no-space-flag 1
387 .nr an-break-flag 1
388 .br
389 .ps +1
390 \fBNote\fR
391 .ps -1
392 .br
393 Setting this option is not recommended since globally encrypting AFP connections via SSH will increase the server\*(Aqs load significantly\&. On the other hand, Apple\*(Aqs client side implementation of this feature in MacOS X versions prior to 10\&.3\&.4 contained a security flaw\&.
394 .sp .5v
395 .RE
396 .RE
397 .PP
398 afp listen = \fIip address[:port] [ip adress[:port] \&.\&.\&.]\fR \fB(G)\fR
399 .RS 4
400 Specifies the IP address that the server should advertise
401 \fBand\fR
402 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\&.
403 .RE
404 .PP
405 afp port = \fIport number\fR \fB(G)\fR
406 .RS 4
407 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
408 \fBafp listen\fR
409 option\&.
410 .RE
411 .PP
412 cnid listen = \fIip address[:port] [ip adress[:port] \&.\&.\&.]\fR \fB(G)\fR
413 .RS 4
414 Specifies the IP address that the CNID server should listen on\&. The default is
415 \fBlocalhost:4700\fR\&.
416 .RE
417 .PP
418 disconnect time = \fInumber\fR \fB(G)\fR
419 .RS 4
420 Keep disconnected AFP sessions for
421 \fInumber\fR
422 hours before dropping them\&. Default is 24 hours\&.
423 .RE
424 .PP
425 dsireadbuf = \fInumber\fR \fB(G)\fR
426 .RS 4
427 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\&.
428 \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)\&.
429 .RE
430 .PP
431 fqdn = \fIname:port\fR \fB(G)\fR
432 .RS 4
433 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\&.
434 .RE
435 .PP
436 hostname = \fIname\fR \fB(G)\fR
437 .RS 4
438 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
439 \fBafp listen\fR\&.
440 .RE
441 .PP
442 max connections = \fInumber\fR \fB(G)\fR
443 .RS 4
444 Sets the maximum number of clients that can simultaneously connect to the server (default is 200)\&.
445 .RE
446 .PP
447 server quantum = \fInumber\fR \fB(G)\fR
448 .RS 4
449 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\*(Aqre absolutely sure, what you\*(Aqre doing
450 .RE
451 .PP
452 sleep time = \fInumber\fR \fB(G)\fR
453 .RS 4
454 Keep sleeping AFP sessions for
455 \fInumber\fR
456 hours before disconnecting clients in sleep mode\&. Default is 10 hours\&.
457 .RE
458 .PP
459 tcprcvbuf = \fInumber\fR \fB(G)\fR
460 .RS 4
461 Try to set TCP receive buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
462 .RE
463 .PP
464 tcpsndbuf = \fInumber\fR \fB(G)\fR
465 .RS 4
466 Try to set TCP send buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
467 .RE
468 .PP
469 use sendfile = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
470 .RS 4
471 Whether to use sendfile
472 syscall for sending file data to clients\&.
473 .RE
474 .PP
475 zeroconf = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
476 .RS 4
477 Whether to use automatic Zeroconf
478 service registration if Avahi or mDNSResponder were compiled in\&.
479 .RE
480 .SS "Miscellaneous Options"
481 .PP
482 admin group = \fIgroup\fR \fB(G)\fR
483 .RS 4
484 Allows users of a certain group to be seen as the superuser when they log in\&. This option is disabled by default\&.
485 .RE
486 .PP
487 afp read locks = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
488 .RS 4
489 Whether to apply locks to the byte region read in FPRead calls\&. The AFP spec mandates this, but it\*(Aqs not really in line with UNIX semantics and is a performance hug\&.
490 .RE
491 .PP
492 basedir regex = \fIregex\fR \fB(H)\fR
493 .RS 4
494 Regular expression which matches the parent directory of the user homes\&. In the simple case this is just a path ie
495 \fBbasedir regex = /home\fR
496 .RE
497 .PP
498 close vol = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
499 .RS 4
500 Whether to close volumes possibly opened by clients when they\*(Aqre removed from the configuration and the configuration is reloaded\&.
501 .RE
502 .PP
503 cnid server = \fIipaddress[:port]\fR \fB(G)/(V)\fR
504 .RS 4
505 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\&.\-
506 .RE
507 .PP
508 dircachesize = \fInumber\fR \fB(G)\fR
509 .RS 4
510 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\&.
511 .sp
512 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\&.
513 .RE
514 .PP
515 extmap file = \fIpath\fR \fB(G)\fR
516 .RS 4
517 Sets the path to the file which defines file extension type/creator mappings\&. (default is :ETCDIR:/AppleVolumes\&.system)\&.
518 .RE
519 .PP
520 guest account = \fIname\fR \fB(G)\fR
521 .RS 4
522 Specifies the user that guests should use (default is "nobody")\&. The name should be quoted\&.
523 .RE
524 .PP
525 home name = \fIname\fR \fB(H)\fR
526 .RS 4
527 AFP user home volume name\&. The default is
528 \fIusers\*(Aqs home\fR\&.
529 .RE
530 .PP
531 keep sessions = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
532 .RS 4
533 Enable "Continuous AFP Service"\&. This means restarting AFP and CNID service daemons master processes, but keeping the AFP session processes\&. This can be used to install (most) updates to Netatalk without interruping active AFP sessions\&. Existing AFP sessions will still run the version from before updating, but new AFP sessions will run the updated code\&. After enabling this option when sending SIGQUIT to the
534 \fInetatalk\fR
535 service controller process, the AFP and CNID daemons will exit and then the service controller will restart them\&. AFP session processes are notified of the master afpd shutdown, they will then sleep 15\-20 seconds and then try to reconnect their IPC channel to the master afpd process\&. The IPC channel between the AFP master service daemon and the AFP session child is used for keeping session state of AFP sessions in the AFP master process\&. The session state is needed when AFP clients experience eg network outages and try to reconnect to the AFP server\&.
536 .RE
537 .PP
538 login message = \fImessage\fR \fB(G)/(V)\fR
539 .RS 4
540 Sets a message to be displayed when clients logon to the server\&. The message should be in
541 \fBunix charset\fR
542 and should be quoted\&. Extended characters are allowed\&.
543 .RE
544 .PP
545 map acls = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
546 .RS 4
547 Whether to map filesystem ACLs to effective permissions\&.
548 .RE
549 .PP
550 mimic model = \fImodel\fR \fB(G)\fR
551 .RS 4
552 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\&.
553 .RE
554 .PP
555 signature = <text> \fB(G)\fR
556 .RS 4
557 Specify a server signature\&. The maximum length is 16 characters\&. This option is useful for clustered environments, to provide fault isolation etc\&. By default, afpd generate signature and saving it to
558 :STATEDIR:/netatalk/afp_signature\&.conf
559 automatically (based on random number)\&. See also asip\-status\&.pl(1)\&.
560 .RE
561 .PP
562 solaris share reservations = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
563 .RS 4
564 Use share reservations on Solaris\&. Solaris CIFS server uses this too, so this makes a lock coherent multi protocol server\&.
565 .RE
566 .PP
567 vol dbpath = \fIpath\fR \fB(G)\fR
568 .RS 4
569 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
570 :STATEDIR:/netatalk/CNID/\&.
571 .RE
572 .PP
573 volnamelen = \fInumber\fR \fB(G)\fR
574 .RS 4
575 Max length of UTF8\-MAC volume name for Mac OS X\&. Note that Hangul is especially sensitive to this\&.
576 .sp
577 .if n \{\
578 .RS 4
579 .\}
580 .nf
581  73: limit of Mac OS X 10\&.1 80: limit of Mac
582             OS X 10\&.4/10\&.5 (default) 255: limit of recent Mac OS
583             X
584 .fi
585 .if n \{\
586 .RE
587 .\}
588 .sp
589 Mac OS 9 and earlier are not influenced by this, because Maccharset volume name is always limitted to 27 bytes\&.
590 .RE
591 .PP
592 vol preset = \fIname\fR \fB(G)/(V)\fR
593 .RS 4
594 Use section
595 \fBname\fR
596 as option preset for all volumes (when set in the [Global] section) or for one volume (when set in that volume\*(Aqs section)\&.
597 .RE
598 .SS "Logging Options"
599 .PP
600 log file = \fIlogfile\fR \fB(G)\fR
601 .RS 4
602 If not specified Netatalk logs to syslogs daemon facilify\&. Otherwise it logs to
603 \fBlogfile\fR\&.
604 .RE
605 .PP
606 log level = \fItype:level [type:level \&.\&.\&.]\fR \fB(G)\fR, log level = \fItype:level,[type:level, \&.\&.\&.]\fR \fB(G)\fR
607 .RS 4
608 Specify that any message of a loglevel up to the given
609 \fBlog level\fR
610 should be logged\&.
611 .sp
612 By default afpd logs to syslog with a default logging setup equivalent to
613 \fBdefault:note\fR
614 .sp
615 logtypes: default, afpdaemon, logger, uamsdaemon
616 .sp
617 loglevels: severe, error, warn, note, info, debug, debug6, debug7, debug8, debug9, maxdebug
618 .if n \{\
619 .sp
620 .\}
621 .RS 4
622 .it 1 an-trap
623 .nr an-no-space-flag 1
624 .nr an-break-flag 1
625 .br
626 .ps +1
627 \fBNote\fR
628 .ps -1
629 .br
630 Both logtype and loglevels are case insensitive\&.
631 .sp .5v
632 .RE
633 .RE
634 .SS "Filesystem Change Events (FCE)"
635 .PP
636 Netatalk includes a nifty filesystem change event mechanism where afpd processes notfiy interested listeners about certain filesytem event by UDP network datagrams\&.
637 .PP
638 fce listener = \fIhost[:port]\fR \fB(G)\fR
639 .RS 4
640 Enables sending FCE events to the specified
641 \fIhost\fR, default
642 \fIport\fR
643 is 12250 if not specified\&. Specifying mutliple listeners is done by having this option once for each of them\&.
644 .RE
645 .PP
646 fce events = \fIfmod,fdel,ddel,fcre,dcre,tmsz\fR \fB(G)\fR
647 .RS 4
648 Speficies which FCE events are active, default is
649 \fIfmod,fdel,ddel,fcre,dcre\fR\&.
650 .RE
651 .PP
652 fce coalesce = \fIall|delete|create\fR \fB(G)\fR
653 .RS 4
654 Coalesce FCE events\&.
655 .RE
656 .PP
657 fce holdfmod = \fIseconds\fR \fB(G)\fR
658 .RS 4
659 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\&.
660 .RE
661 .SS "Debug Parameters"
662 .PP
663 These options are useful for debugging only\&.
664 .PP
665 tickleval = \fInumber\fR \fB(G)\fR
666 .RS 4
667 Sets the tickle timeout interval (in seconds)\&. Defaults to 30\&.
668 .RE
669 .PP
670 timeout = \fInumber\fR \fB(G)\fR
671 .RS 4
672 Specify the number of tickles to send before timing out a connection\&. The default is 4, therefore a connection will timeout after 2 minutes\&.
673 .RE
674 .PP
675 client polling = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
676 .RS 4
677 With this option enabled, afpd won\*(Aqt 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\&.
678 \fINote\fR: Depending on the number of simultaneously connected clients and the network\*(Aqs speed, this can lead to a significant higher load on your network!
679 .sp
680 Do not use this option any longer as present Netatalk correctly supports server notifications, allowing connected clients to update folder listings in case another client changed the contents\&.
681 .RE
682 .SS "Options for ACL handling"
683 .PP
684 For a basic mode of operation there\*(Aqs nothing to configure\&. afpd reads ACLs on the fly, calculating effective permissions and returning the calculated permissions via the so called UARights permission bits\&. On a Mac the Finder uses these bits to adjust permission in Finder windows\&. For example folder whos UNIX mode would only result in in read\-only permissions for a user will not be displayed with a read\-only icon and the user will be able to write to the folder given the folder has an ACL giving the user write access\&.
685 .PP
686 However, neither in Finder "Get Info" windows nor in Terminal will you be able to see the ACLs, that\*(Aqs a result of how ACLs in OS X are designed\&. If you want to be able to display ACLs on the client, things get more involed as you must then setup both client and server to be part on a authentication domain (directory service, eg LDAP, OpenDirectory)\&. The reason is, that in OS X ACLs are bound to UUIDs, not just uid\*(Aqs or gid\*(Aqs\&. Therefor afpd must be able to map every filesystem uid and gid to a UUID so that it can return the server side ACLs which are bound to UNIX uid and gid mapped to OS X UUIDs\&. Get it? Read on\&.
687 .PP
688 Netatalk can query a directory server using LDAP queries\&. Either the directory server already provides an UUID attribute for user and groups (Active Directory, Open Directory) or you reuse an unused attribute (or add a new one) to you directory server (eg OpenLDAP)\&.
689 .PP
690 The following LDAP options must be configured for Netatalk:
691 .PP
692 ldap auth method = \fInone|simple|sasl\fR \fB(G)\fR
693 .RS 4
694 Authentication method:
695 \fBnone | simple | sasl\fR
696 .PP
697 none
698 .RS 4
699 anonymous LDAP bind
700 .RE
701 .PP
702 simple
703 .RS 4
704 simple LDAP bind
705 .RE
706 .PP
707 sasl
708 .RS 4
709 SASL\&. Not yet supported !
710 .RE
711 .RE
712 .PP
713 ldap auth dn = \fIdn\fR \fB(G)\fR
714 .RS 4
715 Distinguished Name of the user for simple bind\&.
716 .RE
717 .PP
718 ldap auth pw = \fIpassword\fR \fB(G)\fR
719 .RS 4
720 Distinguished Name of the user for simple bind\&.
721 .RE
722 .PP
723 ldap server = \fIhost\fR \fB(G)\fR
724 .RS 4
725 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\&.
726 .sp
727 You can use
728 \fBafpldaptest\fR(1)
729 to syntactically check your config\&.
730 .RE
731 .PP
732 ldap userbase = \fIbase dn\fR \fB(G)\fR
733 .RS 4
734 DN of the user container in LDAP\&.
735 .RE
736 .PP
737 ldap userscope = \fIscope\fR \fB(G)\fR
738 .RS 4
739 Search scope for user search:
740 \fBbase | one | sub\fR
741 .RE
742 .PP
743 ldap groupbase = \fIbase dn\fR \fB(G)\fR
744 .RS 4
745 DN of the group container in LDAP\&.
746 .RE
747 .PP
748 ldap groupscope = \fIscope\fR \fB(G)\fR
749 .RS 4
750 Search scope for user search:
751 \fBbase | one | sub\fR
752 .RE
753 .PP
754 ldap uuid attr = \fIdn\fR \fB(G)\fR
755 .RS 4
756 Name of the LDAP attribute with the UUIDs\&.
757 .sp
758 Note: this is used both for users and groups\&.
759 .RE
760 .PP
761 ldap name attr = \fIdn\fR \fB(G)\fR
762 .RS 4
763 Name of the LDAP attribute with the users short name\&.
764 .RE
765 .PP
766 ldap uuid string = \fISTRING\fR \fB(G)\fR
767 .RS 4
768 Format of the uuid string in the directory\&. A series of x and \-, where every x denotes a value 0\-9a\-f and every \- is a seperator\&.
769 .sp
770 Default: xxxxxxxx\-xxxx\-xxxx\-xxxx\-xxxxxxxxxxxx
771 .RE
772 .PP
773 ldap uuid encoding = \fIstring | ms\-guid (default: string)\fR \fB(G)\fR
774 .RS 4
775 Format of the UUID of the LDAP attribute, allows usage of the binary objectGUID fields from Active Directory\&. If left unspecified, string is the default, which passes through the ASCII UUID returned by most other LDAP stores\&. If set to ms\-guid, the internal UUID representation is converted to and from the binary format used in the objectGUID attribute found on objects in Active Directory when interacting with the server\&.
776 .PP
777 string
778 .RS 4
779 UUID is a string, use with eg OpenDirectory\&.
780 .RE
781 .PP
782 ms\-guid
783 .RS 4
784 Binary objectGUID from Active Directory
785 .RE
786 .RE
787 .PP
788 ldap group attr = \fIdn\fR \fB(G)\fR
789 .RS 4
790 Name of the LDAP attribute with the groups short name\&.
791 .RE
792 .SH "EXPLANATION OF VOLUME PARAMETERS"
793 .SS "Parameters"
794 .PP
795 The section name defines the volume name which is the name that appears in the Chooser or the "connect to server" dialog on Macintoshes to represent the appropriate share\&. No two volumes may have the same name\&. The volume name cannot contain the
796 \*(Aq:\*(Aq
797 character\&. The volume name is mangled if it is very long\&. Mac charset volume name is limited to 27 characters\&. UTF8\-MAC volume name is limited to volnamelen parameter\&.
798 .PP
799 path = \fIPATH\fR \fB(V)\fR
800 .RS 4
801 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\&.
802 .sp
803 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
804 \*(Aq:\*(Aq
805 character\&. The volume name is mangled if it is very long\&. Mac charset volume name is limited to 27 characters\&. UTF8\-MAC volume name is limited to volnamelen parameter\&.
806 .RE
807 .PP
808 appledouble = \fIea|v2\fR \fB(V)\fR
809 .RS 4
810 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
811 \fBea\fR\&.
812 .RE
813 .PP
814 vol size limit = \fIsize in MiB\fR \fB(V)\fR
815 .RS 4
816 Useful for Time Machine: limits the reported volume size, thus preventing Time Machine from using the whole real disk space for backup\&. Example: "vol size limit = 1000" would limit the reported disk space to 1 GB\&.
817 \fBIMPORTANT: \fR
818 This is an approimated calculation taking into accout the contents of Time Machine sparsebundle images\&. Therefor you MUST NOT use this volume to store other content when using this option, because it would NOT be accounted\&. The calculation works by reading the band size from the Info\&.plist XML file of the sparsebundle, reading the bands/ directory counting the number of band files, and then multiplying one with the other\&.
819 .RE
820 .PP
821 valid users = \fIuser @group\fR \fB(V)\fR
822 .RS 4
823 The allow option allows the users and groups that access a share to be specified\&. Users and groups are specified, delimited by spaces or commas\&. Groups are designated by a @ prefix\&. Names may be quoted in order to allow for spaces in names\&. Example:
824 .sp
825 .if n \{\
826 .RS 4
827 .\}
828 .nf
829 valid users = user "user 2" @group \(lq@group 2"
830 .fi
831 .if n \{\
832 .RE
833 .\}
834 .RE
835 .PP
836 invalid users = \fIusers/groups\fR \fB(V)\fR
837 .RS 4
838 The deny option specifies users and groups who are not allowed access to the share\&. It follows the same format as the "valid users" option\&.
839 .RE
840 .PP
841 hosts allow = \fIIP host address/IP netmask bits [ \&.\&.\&. ]\fR \fB(V)\fR
842 .RS 4
843 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\&.
844 .sp
845 Example: hosts allow = 10\&.1\&.0\&.0/16 10\&.2\&.1\&.100 2001:0db8:1234::/48
846 .RE
847 .PP
848 hosts deny = \fIIP host address/IP netmask bits [ \&.\&.\&. ]\fR \fB(V)\fR
849 .RS 4
850 Listed hosts and nets are rejected, all others are allowed\&.
851 .sp
852 Example: hosts deny = 192\&.168\&.100/24 10\&.1\&.1\&.1 2001:db8::1428:57ab
853 .RE
854 .PP
855 cnid scheme = \fIbackend\fR \fB(V)\fR
856 .RS 4
857 set the CNID backend to be used for the volume, default is [:DEFAULT_CNID_SCHEME:] available schemes: [:COMPILED_BACKENDS:]
858 .RE
859 .PP
860 ea = \fInone|auto|sys|ad\fR
861 .RS 4
862 Specify how Extended Attributes
863 are stored\&.
864 \fBauto\fR
865 is the default\&.
866 .PP
867 auto
868 .RS 4
869 Try
870 \fBsys\fR
871 (by setting an EA on the shared directory itself), fallback to
872 \fBad\fR\&. Requires writeable volume for perfoming test\&. "\fBread only = yes\fR" overwrites
873 \fBauto\fR
874 with
875 \fBnone\fR\&. Use explicit "\fBea = sys|ad\fR" for read\-only volumes where appropiate\&.
876 .RE
877 .PP
878 sys
879 .RS 4
880 Use filesystem Extended Attributes\&.
881 .RE
882 .PP
883 ad
884 .RS 4
885 Use files in
886 \fI\&.AppleDouble\fR
887 directories\&.
888 .RE
889 .PP
890 none
891 .RS 4
892 No Extended Attributes support\&.
893 .RE
894 .RE
895 .PP
896 mac charset = \fICHARSET\fR \fB(V)\fR
897 .RS 4
898 specifies the Mac client charset for this Volume, e\&.g\&.
899 \fIMAC_ROMAN\fR,
900 \fIMAC_CYRILLIC\fR\&. If not specified the global setting is applied\&. This setting is only required if you need volumes, where the Mac charset differs from the one globally set in the [Global] section\&.
901 .RE
902 .PP
903 casefold = \fBoption\fR
904 .RS 4
905 The casefold option handles, if the case of filenames should be changed\&. The available options are:
906 .sp
907 \fBtolower\fR
908 \- Lowercases names in both directions\&.
909 .sp
910 \fBtoupper\fR
911 \- Uppercases names in both directions\&.
912 .sp
913 \fBxlatelower\fR
914 \- Client sees lowercase, server sees uppercase\&.
915 .sp
916 \fBxlateupper\fR
917 \- Client sees uppercase, server sees lowercase\&.
918 .RE
919 .PP
920 password = \fIpassword\fR \fB(V)\fR
921 .RS 4
922 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)\&.
923 .RE
924 .PP
925 file perm = \fImode\fR \fB(V)\fR, directory perm = \fImode\fR \fB(V)\fR
926 .RS 4
927 Add(or) with the client requested permissions:
928 \fBfile perm\fR
929 is for files only,
930 \fBdirectory perm\fR
931 is for directories only\&. Don\*(Aqt use with "\fBunix priv = no\fR"\&.
932 .PP
933 \fBExample.\ \&Volume for a collaborative workgroup\fR
934 .sp
935 .if n \{\
936 .RS 4
937 .\}
938 .nf
939 file perm = 0660 directory perm =
940                 0770
941 .fi
942 .if n \{\
943 .RE
944 .\}
945
946 .RE
947 .PP
948 umask = \fImode\fR \fB(V)\fR
949 .RS 4
950 set perm mask\&. Don\*(Aqt use with "\fBunix priv = no\fR"\&.
951 .RE
952 .PP
953 preexec = \fIcommand\fR \fB(V)\fR
954 .RS 4
955 command to be run when the volume is mounted, ignored for user defined volumes
956 .RE
957 .PP
958 postexec = \fIcommand\fR \fB(V)\fR
959 .RS 4
960 command to be run when the volume is closed, ignored for user defined volumes
961 .RE
962 .PP
963 root preexec = \fIcommand\fR \fB(V)\fR
964 .RS 4
965 command to be run as root when the volume is mounted, ignored for user defined volumes
966 .RE
967 .PP
968 root postexec = \fIcommand\fR \fB(V)\fR
969 .RS 4
970 command to be run as root when the volume is closed, ignored for user defined volumes
971 .RE
972 .PP
973 rolist = \fBusers/groups\fR \fB(V)\fR
974 .RS 4
975 Allows certain users and groups to have read\-only access to a share\&. This follows the allow option format\&.
976 .RE
977 .PP
978 rwlist = \fIusers/groups\fR \fB(V)\fR
979 .RS 4
980 Allows certain users and groups to have read/write access to a share\&. This follows the allow option format\&.
981 .RE
982 .PP
983 veto files = \fIvetoed names\fR \fB(V)\fR
984 .RS 4
985 hide files and directories,where the path matches one of the \*(Aq/\*(Aq delimited vetoed names\&. The veto string must always be terminated with a \*(Aq/\*(Aq, eg\&. "veto1/", "veto1/veto2/"\&.
986 .RE
987 .SS "Volume options"
988 .PP
989 Boolean volume options\&.
990 .PP
991 acls = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
992 .RS 4
993 Whether to flag volumes as supporting ACLs\&. If ACL support is compiled in, this is yes by default\&.
994 .RE
995 .PP
996 cnid dev = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
997 .RS 4
998 Whether to use the device number in the CNID backends\&. Helps when the device number is not constant across a reboot, eg cluster, \&.\&.\&.
999 .RE
1000 .PP
1001 convert appledouble = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1002 .RS 4
1003 Whether automatic conversion from
1004 \fBappledouble = v2\fR
1005 to
1006 \fBappledouble = ea\fR
1007 is performed when accessing filesystems from clients\&. This is generally useful, but costs some performance\&. It\*(Aqs recommdable to run
1008 \fBdbd\fR
1009 on volumes and do the conversion with that\&. Then this option can be set to no\&.
1010 .RE
1011 .PP
1012 follow symlinks = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1013 .RS 4
1014 The default setting is false thus symlinks are not followed on the server\&. This is the same behaviour as OS X\*(Aqs AFP server\&. Setting the option to true causes afpd to follow symlinks on the server\&. symlinks may point outside of the AFP volume, currently afpd doesn\*(Aqt do any checks for "wide symlinks"\&.
1015 .RE
1016 .PP
1017 invisible dots = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1018 .RS 4
1019 make dot files invisible\&.
1020 .RE
1021 .PP
1022 network ids = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1023 .RS 4
1024 Whether the server support network ids\&. Setting this to
1025 \fIno\fR
1026 will result in the client not using ACL AFP functions\&.
1027 .RE
1028 .PP
1029 preexec close = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1030 .RS 4
1031 A non\-zero return code from preexec close the volume being immediately, preventing clients to mount/see the volume in question\&.
1032 .RE
1033 .PP
1034 read only = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1035 .RS 4
1036 Specifies the share as being read only for all users\&. Overwrites
1037 \fBea = auto\fR
1038 with
1039 \fBea = none\fR
1040 .RE
1041 .PP
1042 root preexec close= \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1043 .RS 4
1044 A non\-zero return code from root_preexec closes the volume immediately, preventing clients to mount/see the volume in question\&.
1045 .RE
1046 .PP
1047 search db = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1048 .RS 4
1049 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\&.
1050 .RE
1051 .PP
1052 stat vol = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1053 .RS 4
1054 Whether to stat volume path when enumerating volumes list, useful for automounting or volumes created by a preexec script\&.
1055 .RE
1056 .PP
1057 time machine = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1058 .RS 4
1059 Whether to enable Time Machine suport for this volume\&.
1060 .RE
1061 .PP
1062 unix priv = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1063 .RS 4
1064 Whether to use AFP3 UNIX privileges\&. This should be set for OS X clients\&. See also:
1065 \fBfile perm\fR,
1066 \fBdirectory perm\fR
1067 and
1068 \fBumask\fR\&.
1069 .RE
1070 .SH "CNID BACKENDS"
1071 .PP
1072 The AFP protocol mostly refers to files and directories by ID and not by name\&. Netatalk needs a way to store these ID\*(Aqs in a persistent way, to achieve this several different CNID backends are available\&. The CNID Databases are by default located in the
1073 :STATEDIR:/netatalk/CNID/(volumename)/\&.AppleDB/
1074 directory\&.
1075 .PP
1076 cdb
1077 .RS 4
1078 "Concurrent database", backend is based on Oracle Berkely DB\&. With this backend several
1079 \fBafpd\fR
1080 deamons access the CNID database directly\&. Berkeley DB locking is used to synchronize access, if more than one
1081 \fBafpd\fR
1082 process is active for a volume\&. The drawback is, that the crash of a single
1083 \fBafpd\fR
1084 process might corrupt the database\&.
1085 .RE
1086 .PP
1087 dbd
1088 .RS 4
1089 Access to the CNID database is restricted to the
1090 \fBcnid_metad\fR
1091 daemon process\&.
1092 \fBafpd\fR
1093 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
1094 \fBcdb\fR
1095 .RE
1096 .PP
1097 last
1098 .RS 4
1099 This backend is an exception, in terms of ID persistency\&. ID\*(Aqs are only valid for the current session\&. This is basically what
1100 \fBafpd\fR
1101 did in the 1\&.5 (and 1\&.6) versions\&. This backend is still available, as it is useful for e\&.g\&. sharing cdroms\&. Starting with Netatalk 3\&.0, it becomes the
1102 \fIread only mode\fR
1103 automatically\&.
1104 .sp
1105 \fBWarning\fR: It is
1106 \fINOT\fR
1107 recommended to use this backend for volumes anymore, as
1108 \fBafpd\fR
1109 now relies heavily on a persistent ID database\&. Aliases will likely not work and filename mangling is not supported\&.
1110 .RE
1111 .PP
1112 Even though
1113 \fB\&./configure \-\-help\fR
1114 might show that there are other CNID backends available, be warned those are likely broken or mainly used for testing\&. Don\*(Aqt use them unless you know what you\*(Aqre doing, they may be removed without further notice from future versions\&.
1115 .SH "CHARSET OPTIONS"
1116 .PP
1117 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\&.
1118 .PP
1119 \fBafpd\fR
1120 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
1121 :f0\&. Some special characters will be converted as to :xx notation as well\&. \*(Aq/\*(Aq will be encoded to
1122 :2f, if
1123 \fBusedots\fR
1124 is not specified, a leading dot \*(Aq\&.\*(Aq will be encoded as
1125 :2e\&.
1126 .PP
1127 This version now uses UTF\-8 as the default encoding for names\&. \*(Aq/\*(Aq will be converted to \*(Aq:\*(Aq\&.
1128 .PP
1129 The
1130 \fBvol charset\fR
1131 option will allow you to select another volume encoding\&. E\&.g\&. for western users another useful setting could be vol charset ISO\-8859\-15\&.
1132 \fBafpd\fR
1133 will accept any
1134 \fBiconv\fR(1)
1135 provided charset\&. If a character cannot be converted from the
1136 \fBmac charset\fR
1137 to the selected
1138 \fBvol charset\fR, afpd will save it as a CAP encoded character\&. For AFP3 clients,
1139 \fBafpd\fR
1140 will convert the UTF\-8
1141 character to
1142 \fBmac charset\fR
1143 first\&. If this conversion fails, you\*(Aqll receive a \-50 error on the mac\&.
1144 .PP
1145 \fINote\fR: Whenever you can, please stick with the default UTF\-8 volume format\&.
1146 .SH "SEE ALSO"
1147 .PP
1148 \fBafpd\fR(8),
1149 \fBafppasswd\fR(5),
1150 \fBafp_signature.conf\fR(5),
1151 \fBcnid_metad\fR(8)