]> arthur.barton.de Git - netatalk.git/blob - man/man5/afp.conf.5.in
man: afp.conf: "fce version" option
[netatalk.git] / man / man5 / afp.conf.5.in
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: 05 Jun 2014
6 .\"    Manual: @NETATALK_VERSION@
7 .\"    Source: @NETATALK_VERSION@
8 .\"  Language: English
9 .\"
10 .TH "AFP\&.CONF" "5" "05 Jun 2014" "@NETATALK_VERSION@" "@NETATALK_VERSION@"
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 specified both in a preset
92 \fIand\fR
93 in a volume section the volume section setting completely 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 necessary 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]
136       path = afp\-data
137       basedir regex = /home
138 .fi
139 .if n \{\
140 .RE
141 .\}
142 .sp
143 For a user
144 \fIjohn\fR
145 this results in an AFP home volume with a path of
146 /home/john/afp\-data\&.
147 .PP
148 If
149 \fBbasedir regex\fR
150 contains symlink, set the canonicalized absolute path\&. When
151 /home
152 links to
153 /usr/home:
154 .sp
155 .if n \{\
156 .RS 4
157 .\}
158 .nf
159  [Homes]
160       basedir regex = /usr/home
161 .fi
162 .if n \{\
163 .RE
164 .\}
165 .SH "PARAMETERS"
166 .PP
167 Parameters define the specific attributes of sections\&.
168 .PP
169 Some parameters are specific to the [Global] section (e\&.g\&.,
170 \fIlog type\fR)\&. All others are permissible only in volume sections\&. The letter
171 \fIG\fR
172 in parentheses indicates that a parameter is specific to the [Global] section\&. The letter
173 \fIV\fR
174 indicates that a parameter can be specified in a volume specific section\&.
175 .SH "VARIABLE SUBSTITUTIONS"
176 .PP
177 You can use variables in volume names\&. The use of variables in paths is limited to $u\&.
178 .sp
179 .RS 4
180 .ie n \{\
181 \h'-04' 1.\h'+01'\c
182 .\}
183 .el \{\
184 .sp -1
185 .IP "  1." 4.2
186 .\}
187 if you specify an unknown variable, it will not get converted\&.
188 .RE
189 .sp
190 .RS 4
191 .ie n \{\
192 \h'-04' 2.\h'+01'\c
193 .\}
194 .el \{\
195 .sp -1
196 .IP "  2." 4.2
197 .\}
198 if you specify a known variable, but that variable doesn\*(Aqt have a value, it will get ignored\&.
199 .RE
200 .PP
201 The variables which can be used for substitutions are:
202 .PP
203 $b
204 .RS 4
205 basename
206 .RE
207 .PP
208 $c
209 .RS 4
210 client\*(Aqs ip address
211 .RE
212 .PP
213 $d
214 .RS 4
215 volume pathname on server
216 .RE
217 .PP
218 $f
219 .RS 4
220 full name (contents of the gecos field in the passwd file)
221 .RE
222 .PP
223 $g
224 .RS 4
225 group name
226 .RE
227 .PP
228 $h
229 .RS 4
230 hostname
231 .RE
232 .PP
233 $i
234 .RS 4
235 client\*(Aqs ip, without port
236 .RE
237 .PP
238 $s
239 .RS 4
240 server name (this can be the hostname)
241 .RE
242 .PP
243 $u
244 .RS 4
245 user name (if guest, it is the user that guest is running as)
246 .RE
247 .PP
248 $v
249 .RS 4
250 volume name
251 .RE
252 .PP
253 $$
254 .RS 4
255 prints dollar sign ($)
256 .RE
257 .SH "EXPLANATION OF GLOBAL PARAMETERS"
258 .SS "Authentication Options"
259 .PP
260 ad domain = \fIDOMAIN\fR \fB(G)\fR
261 .RS 4
262 Append @DOMAIN to username when authenticating\&. Useful in Active Directory environments that otherwise would require the user to enter the full user@domain string\&.
263 .RE
264 .PP
265 admin auth user = \fIuser\fR \fB(G)\fR
266 .RS 4
267 Specifying eg "\fBadmin auth user = root\fR" whenever a normal user login fails, afpd will try to authenticate as the specified
268 \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
269 \fBadmin auth user\fR, you can authenticate as any other user\&.
270 .RE
271 .PP
272 k5 keytab = \fIpath\fR \fB(G)\fR, k5 service = \fIservice\fR \fB(G)\fR, k5 realm = \fIrealm\fR \fB(G)\fR
273 .RS 4
274 These are required if the server supports the Kerberos 5 authentication UAM\&.
275 .RE
276 .PP
277 nt domain = \fIDOMAIN\fR \fB(G)\fR, nt separator = \fISEPARATOR\fR \fB(G)\fR
278 .RS 4
279 Use for eg\&. winbind authentication, prepends both strings before the username from login and then tries to authenticate with the result through the available and active UAM authentication modules\&.
280 .RE
281 .PP
282 save password = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
283 .RS 4
284 Enables or disables the ability of clients to save passwords locally\&.
285 .RE
286 .PP
287 set password = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
288 .RS 4
289 Enables or disables the ability of clients to change their passwords via chooser or the "connect to server" dialog\&.
290 .RE
291 .PP
292 uam list = \fIuam list\fR \fB(G)\fR
293 .RS 4
294 Space or comma separated list of UAMs\&. (The default is "uams_dhx\&.so uams_dhx2\&.so")\&.
295 .sp
296 The most commonly used UAMs are:
297 .PP
298 uams_guest\&.so
299 .RS 4
300 allows guest logins
301 .RE
302 .PP
303 uams_clrtxt\&.so
304 .RS 4
305 (uams_pam\&.so or uams_passwd\&.so) Allow logins with passwords transmitted in the clear\&. (legacy)
306 .RE
307 .PP
308 uams_randum\&.so
309 .RS 4
310 allows Random Number and Two\-Way Random Number Exchange for authentication (requires a separate file containing the passwords, either @pkgconfdir@/afppasswd file or the one specified via "\fBpasswd file\fR"\&. See
311 \fBafppasswd\fR(1)
312 for details\&. (legacy)
313 .RE
314 .PP
315 uams_dhx\&.so
316 .RS 4
317 (uams_dhx_pam\&.so or uams_dhx_passwd\&.so) Allow Diffie\-Hellman eXchange (DHX) for authentication\&.
318 .RE
319 .PP
320 uams_dhx2\&.so
321 .RS 4
322 (uams_dhx2_pam\&.so or uams_dhx2_passwd\&.so) Allow Diffie\-Hellman eXchange 2 (DHX2) for authentication\&.
323 .RE
324 .PP
325 uam_gss\&.so
326 .RS 4
327 Allow Kerberos V for authentication (optional)
328 .RE
329 .RE
330 .PP
331 uam path = \fIpath\fR \fB(G)\fR
332 .RS 4
333 Sets the default path for UAMs for this server (default is @libdir@/netatalk)\&.
334 .RE
335 .SS "Charset Options"
336 .PP
337 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\&.
338 .PP
339 To be able to serve AFP3 and older clients at the same time,
340 \fBafpd\fR
341 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,
342 \fBafpd\fR
343 can detect the codepage a pre AFP3 client uses, you have to specify it using the
344 \fBmac charset\fR
345 option\&. The default is MacRoman, which should be fine for most western users\&.
346 .PP
347 As
348 \fBafpd\fR
349 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
350 \fBafpd\fR
351 uses
352 \fIUTF8\fR\&. You can set the UNIX charset using the
353 \fBunix charset\fR
354 option\&. If you\*(Aqre using extended characters in the configuration files for
355 \fBafpd\fR, make sure your terminal matches the
356 \fBunix charset\fR\&.
357 .PP
358 mac charset = \fICHARSET\fR \fB(G)/(V)\fR
359 .RS 4
360 Specifies the Mac clients charset, e\&.g\&.
361 \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
362 \fBmac charset\fR\&. Defaults to
363 \fIMAC_ROMAN\fR\&.
364 .RE
365 .PP
366 unix charset = \fICHARSET\fR \fB(G)\fR
367 .RS 4
368 Specifies the servers unix charset, e\&.g\&.
369 \fIISO\-8859\-15\fR
370 or
371 \fIEUC\-JP\fR\&. This is used to convert strings to/from the systems locale, e\&.g\&. for authentication, server messages and volume names\&. If
372 \fILOCALE\fR
373 is set, the systems locale is used\&. Defaults to
374 \fIUTF8\fR\&.
375 .RE
376 .PP
377 vol charset = \fICHARSET\fR \fB(G)/(V)\fR
378 .RS 4
379 Specifies the encoding of the volumes filesystem\&. By default, it is the same as
380 \fBunix charset\fR\&.
381 .RE
382 .SS "Password Options"
383 .PP
384 passwd file = \fIpath\fR \fB(G)\fR
385 .RS 4
386 Sets the path to the Randnum UAM passwd file for this server (default is @pkgconfdir@/afppasswd)\&.
387 .RE
388 .PP
389 passwd minlen = \fInumber\fR \fB(G)\fR
390 .RS 4
391 Sets the minimum password length, if supported by the UAM
392 .RE
393 .SS "Network Options"
394 .PP
395 advertise ssh = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
396 .RS 4
397 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
398 \fBsshd\fR(8)
399 on the server to let things work\&.
400 .if n \{\
401 .sp
402 .\}
403 .RS 4
404 .it 1 an-trap
405 .nr an-no-space-flag 1
406 .nr an-break-flag 1
407 .br
408 .ps +1
409 \fBNote\fR
410 .ps -1
411 .br
412 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\&.
413 .sp .5v
414 .RE
415 .RE
416 .PP
417 afp interfaces = \fIname [name \&.\&.\&.]\fR \fB(G)\fR
418 .RS 4
419 Specifies the network interfaces that the server should listens on\&. The default is advertise the first IP address of the system, but to listen for any incoming request\&.
420 .RE
421 .PP
422 afp listen = \fIip address[:port] [ip address[:port] \&.\&.\&.]\fR \fB(G)\fR
423 .RS 4
424 Specifies the IP address that the server should advertise
425 \fBand\fR
426 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\&.
427 .sp
428 IPv6 address + port combination must use URL the format using square brackets [IPv6]:port
429 .RE
430 .PP
431 afp port = \fIport number\fR \fB(G)\fR
432 .RS 4
433 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
434 \fBafp listen\fR
435 option\&.
436 .RE
437 .PP
438 cnid listen = \fIip address[:port] [ip address[:port] \&.\&.\&.]\fR \fB(G)\fR
439 .RS 4
440 Specifies the IP address that the CNID server should listen on\&. The default is
441 \fBlocalhost:4700\fR\&.
442 .RE
443 .PP
444 disconnect time = \fInumber\fR \fB(G)\fR
445 .RS 4
446 Keep disconnected AFP sessions for
447 \fInumber\fR
448 hours before dropping them\&. Default is 24 hours\&.
449 .RE
450 .PP
451 dsireadbuf = \fInumber\fR \fB(G)\fR
452 .RS 4
453 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\&.
454 \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)\&.
455 .RE
456 .PP
457 fqdn = \fIname:port\fR \fB(G)\fR
458 .RS 4
459 Specifies a fully\-qualified domain name, with an optional port\&. This is discarded if the server cannot resolve it\&. This option is not honored by AppleShare clients <= 3\&.8\&.3\&. This option is disabled by default\&. Use with caution as this will involve a second name resolution step on the client side\&. Also note that afpd will advertise this name:port combination but not automatically listen to it\&.
460 .RE
461 .PP
462 hostname = \fIname\fR \fB(G)\fR
463 .RS 4
464 Use this instead of the result from calling hostname for determining which IP address to advertise, therefore the hostname is resolved to an IP which is the advertised\&. This is NOT used for listening and it is also overwritten by
465 \fBafp listen\fR\&.
466 .RE
467 .PP
468 max connections = \fInumber\fR \fB(G)\fR
469 .RS 4
470 Sets the maximum number of clients that can simultaneously connect to the server (default is 200)\&.
471 .RE
472 .PP
473 server quantum = \fInumber\fR \fB(G)\fR
474 .RS 4
475 This specifies the DSI server quantum\&. The default value is 0x100000 (1 MiB)\&. 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
476 .RE
477 .PP
478 sleep time = \fInumber\fR \fB(G)\fR
479 .RS 4
480 Keep sleeping AFP sessions for
481 \fInumber\fR
482 hours before disconnecting clients in sleep mode\&. Default is 10 hours\&.
483 .RE
484 .PP
485 tcprcvbuf = \fInumber\fR \fB(G)\fR
486 .RS 4
487 Try to set TCP receive buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
488 .RE
489 .PP
490 tcpsndbuf = \fInumber\fR \fB(G)\fR
491 .RS 4
492 Try to set TCP send buffer using setsockpt()\&. Often OSes impose restrictions on the applications ability to set this value\&.
493 .RE
494 .PP
495 recvfile = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
496 .RS 4
497 Whether to use splice() on Linux for receiving data\&.
498 .RE
499 .PP
500 splice size = \fInumber\fR (default: \fI64k\fR) \fB(G)\fR
501 .RS 4
502 Maximum number of bytes spliced\&.
503 .RE
504 .PP
505 use sendfile = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
506 .RS 4
507 Whether to use sendfile
508 syscall for sending file data to clients\&.
509 .RE
510 .PP
511 zeroconf = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
512 .RS 4
513 Whether to use automatic Zeroconf
514 service registration if Avahi or mDNSResponder were compiled in\&.
515 .RE
516 .SS "Miscellaneous Options"
517 .PP
518 admin group = \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 afp read locks = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
524 .RS 4
525 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\&.
526 .RE
527 .PP
528 afpstats = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
529 .RS 4
530 Whether to provide AFP runtime statistics (connected users, open volumes) via dbus\&.
531 .RE
532 .PP
533 basedir regex = \fIregex\fR \fB(H)\fR
534 .RS 4
535 Regular expression which matches the parent directory of the user homes\&. If
536 \fBbasedir regex\fR
537 contains symlink, you must set the canonicalized absolute path\&. In the simple case this is just a path ie
538 \fBbasedir regex = /home\fR
539 .RE
540 .PP
541 chmod request = \fIpreserve (default) | ignore | simple\fR \fB(G/V)\fR
542 .RS 4
543 Advanced permission control that deals with ACLs\&.
544 .sp
545 .RS 4
546 .ie n \{\
547 \h'-04'\(bu\h'+03'\c
548 .\}
549 .el \{\
550 .sp -1
551 .IP \(bu 2.3
552 .\}
553
554 \fBignore\fR
555 \- UNIX chmod() requests are completely ignored
556 .RE
557 .sp
558 .RS 4
559 .ie n \{\
560 \h'-04'\(bu\h'+03'\c
561 .\}
562 .el \{\
563 .sp -1
564 .IP \(bu 2.3
565 .\}
566
567 \fBpreserve\fR
568 \- preserve ZFS ACEs for named users and groups or POSIX ACL group mask
569 .RE
570 .sp
571 .RS 4
572 .ie n \{\
573 \h'-04'\(bu\h'+03'\c
574 .\}
575 .el \{\
576 .sp -1
577 .IP \(bu 2.3
578 .\}
579
580 \fBsimple\fR
581 \- just to a chmod() as requested without any extra steps
582 .RE
583 .RE
584 .PP
585 close vol = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
586 .RS 4
587 Whether to close volumes possibly opened by clients when they\*(Aqre removed from the configuration and the configuration is reloaded\&.
588 .RE
589 .PP
590 cnid mysql host = \fIMySQL server address\fR \fB(G)\fR
591 .RS 4
592 name or address of a MySQL server for use with the mysql CNID backend\&.
593 .RE
594 .PP
595 cnid mysql user = \fIMySQL user\fR \fB(G)\fR
596 .RS 4
597 MySQL user for authentication with the server\&.
598 .RE
599 .PP
600 cnid mysql pw = \fIpassword\fR \fB(G)\fR
601 .RS 4
602 Password for MySQL server\&.
603 .RE
604 .PP
605 cnid mysql db = \fIdatabase name\fR \fB(G)\fR
606 .RS 4
607 Name of an existing database for which the specified user has full privileges\&.
608 .RE
609 .PP
610 cnid server = \fIipaddress[:port]\fR \fB(G)/(V)\fR
611 .RS 4
612 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\&.\-
613 .RE
614 .PP
615 dbus daemon = \fIpath\fR \fB(G)\fR
616 .RS 4
617 Sets the path to dbus\-daemon binary used by Spotlight feature\&. The default is
618 /bin/dbus\-daemon\&.
619 .RE
620 .PP
621 dircachesize = \fInumber\fR \fB(G)\fR
622 .RS 4
623 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\&.
624 .sp
625 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\&.
626 .RE
627 .PP
628 extmap file = \fIpath\fR \fB(G)\fR
629 .RS 4
630 Sets the path to the file which defines file extension type/creator mappings\&. (default is @pkgconfdir@/extmap\&.conf)\&.
631 .RE
632 .PP
633 force xattr with sticky bit = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G/V)\fR
634 .RS 4
635 Writing metadata xattr on directories with the sticky bit set may fail even though we may have write access to a directory, because if the sticky bit is set only the owner is allowed to write xattrs\&.
636 .sp
637 By enabling this option Netatalk will write the metadata xattr as root\&.
638 .RE
639 .PP
640 guest account = \fIname\fR \fB(G)\fR
641 .RS 4
642 Specifies the user that guests should use (default is "nobody")\&. The name should be quoted\&.
643 .RE
644 .PP
645 home name = \fIname\fR \fB(H)\fR
646 .RS 4
647 AFP user home volume name\&. The default is
648 \fIuser\*(Aqs home\fR\&.
649 .RE
650 .PP
651 ignored attributes = \fIall | nowrite | nodelete | norename\fR \fB(G)/(V)\fR
652 .RS 4
653 Speficy a set of file and directory attributes that shall be ignored by the server,
654 \fBall\fR
655 includes all the other options\&.
656 .sp
657 In OS X when the Finder sets a lock on a file/directory or you set the BSD uchg flag in the Terminal, all three attributes are used\&. Thus in order to ignore the Finder lock/BSD uchg flag, add set
658 \fIignored attributes = all\fR\&.
659 .RE
660 .PP
661 login message = \fImessage\fR \fB(G)/(V)\fR
662 .RS 4
663 Sets a message to be displayed when clients logon to the server\&. The message should be in
664 \fBunix charset\fR
665 and should be quoted\&. Extended characters are allowed\&.
666 .RE
667 .PP
668 mimic model = \fImodel\fR \fB(G)\fR
669 .RS 4
670 Specifies the icon model that appears on clients\&. Defaults to off\&. Note that afpd must support Zeroconf\&. Examples: RackMac (same as Xserve), PowerBook, PowerMac, Macmini, iMac, MacBook, MacBookPro, MacBookAir, MacPro, AppleTV1,1, AirPort\&.
671 .RE
672 .PP
673 signature = <text> \fB(G)\fR
674 .RS 4
675 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
676 @localstatedir@/netatalk/afp_signature\&.conf
677 automatically (based on random number)\&. See also asip\-status\&.pl(1)\&.
678 .RE
679 .PP
680 solaris share reservations = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
681 .RS 4
682 Use share reservations on Solaris\&. Solaris CIFS server uses this too, so this makes a lock coherent multi protocol server\&.
683 .RE
684 .PP
685 sparql results limit = \fINUMBER\fR (default: \fIUNLIMITED\fR) \fB(G)\fR
686 .RS 4
687 Impose a limit on the number of results queried from Tracker via SPARQL queries\&.
688 .RE
689 .PP
690 spotlight = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)/(V)\fR
691 .RS 4
692 Whether to enable Spotlight searches\&. Note: once the global option is enabled, any volume that is not enabled won\*(Aqt be searchable at all\&. See also
693 \fIdbus daemon\fR
694 option\&.
695 .RE
696 .PP
697 spotlight attributes = \fICOMMA SEPERATED STRING\fR (default: \fIEMPTY\fR) \fB(G)\fR
698 .RS 4
699 A list of attributes that are allowed to be used in Spotlight searches\&. By default all attributes can be searched, passing a string limits attributes to elements of the string\&. Example:
700 .sp
701 .if n \{\
702 .RS 4
703 .\}
704 .nf
705 spotlight
706             attributes = *,kMDItemTextContent
707 .fi
708 .if n \{\
709 .RE
710 .\}
711 .sp
712 .RE
713 .PP
714 spotlight expr = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
715 .RS 4
716 Whether to allow the use of logic expression in searches\&.
717 .RE
718 .PP
719 start dbus = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
720 .RS 4
721 Whether to start a dbus instance for use with Tracker\&.
722 .RE
723 .PP
724 start tracker = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(G)\fR
725 .RS 4
726 Whether to start Tracker with
727 \fItracker\-control \-s\fR\&.
728 .RE
729 .PP
730 veto message = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
731 .RS 4
732 Send optional AFP messages for vetoed files\&. Then whenever a client tries to access any file or directory with a vetoed name, it will be sent an AFP message indicating the name and the directory\&.
733 .RE
734 .PP
735 vol dbpath = \fIpath\fR \fB(G)/(V)\fR
736 .RS 4
737 Sets the database information to be stored in path\&. You have to specify a writable location, even if the volume is read only\&. The default is
738 @localstatedir@/netatalk/CNID/$v/\&.
739 .RE
740 .PP
741 vol dbnest = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
742 .RS 4
743 Setting this option to true brings back Netatalk 2 behaviour of storing the CNID database in a folder called \&.AppleDB inside the volume root of each share\&.
744 .RE
745 .PP
746 volnamelen = \fInumber\fR \fB(G)\fR
747 .RS 4
748 Max length of UTF8\-MAC volume name for Mac OS X\&. Note that Hangul is especially sensitive to this\&.
749 .sp
750 .if n \{\
751 .RS 4
752 .\}
753 .nf
754  73: limit of Mac OS X 10\&.1 80: limit of Mac
755             OS X 10\&.4/10\&.5 (default) 255: limit of recent Mac OS
756             X
757 .fi
758 .if n \{\
759 .RE
760 .\}
761 .sp
762 Mac OS 9 and earlier are not influenced by this, because Maccharset volume name is always limited to 27 bytes\&.
763 .RE
764 .PP
765 vol preset = \fIname\fR \fB(G)/(V)\fR
766 .RS 4
767 Use section
768 \fBname\fR
769 as option preset for all volumes (when set in the [Global] section) or for one volume (when set in that volume\*(Aqs section)\&.
770 .RE
771 .SS "Logging Options"
772 .PP
773 log file = \fIlogfile\fR \fB(G)\fR
774 .RS 4
775 If not specified Netatalk logs to syslogs daemon facility\&. Otherwise it logs to
776 \fBlogfile\fR\&.
777 .RE
778 .PP
779 log level = \fItype:level [type:level \&.\&.\&.]\fR \fB(G)\fR, log level = \fItype:level,[type:level, \&.\&.\&.]\fR \fB(G)\fR
780 .RS 4
781 Specify that any message of a loglevel up to the given
782 \fBlog level\fR
783 should be logged\&.
784 .sp
785 By default afpd logs to syslog with a default logging setup equivalent to
786 \fBdefault:note\fR
787 .sp
788 logtypes: default, afpdaemon, logger, uamsdaemon
789 .sp
790 loglevels: severe, error, warn, note, info, debug, debug6, debug7, debug8, debug9, maxdebug
791 .if n \{\
792 .sp
793 .\}
794 .RS 4
795 .it 1 an-trap
796 .nr an-no-space-flag 1
797 .nr an-break-flag 1
798 .br
799 .ps +1
800 \fBNote\fR
801 .ps -1
802 .br
803 Both logtype and loglevels are case insensitive\&.
804 .sp .5v
805 .RE
806 .RE
807 .SS "Filesystem Change Events (FCE)"
808 .PP
809 Netatalk includes a nifty filesystem change event mechanism where afpd processes notify interested listeners about certain filesystem event by UDP network datagrams\&.
810 .PP
811 The following FCE events are defined:
812 .sp
813 .RS 4
814 .ie n \{\
815 \h'-04'\(bu\h'+03'\c
816 .\}
817 .el \{\
818 .sp -1
819 .IP \(bu 2.3
820 .\}
821 file modification (\fBfmod\fR)
822 .RE
823 .sp
824 .RS 4
825 .ie n \{\
826 \h'-04'\(bu\h'+03'\c
827 .\}
828 .el \{\
829 .sp -1
830 .IP \(bu 2.3
831 .\}
832 file deletion (\fBfdel\fR)
833 .RE
834 .sp
835 .RS 4
836 .ie n \{\
837 \h'-04'\(bu\h'+03'\c
838 .\}
839 .el \{\
840 .sp -1
841 .IP \(bu 2.3
842 .\}
843 directory deletion (\fBddel\fR)
844 .RE
845 .sp
846 .RS 4
847 .ie n \{\
848 \h'-04'\(bu\h'+03'\c
849 .\}
850 .el \{\
851 .sp -1
852 .IP \(bu 2.3
853 .\}
854 file creation (\fBfcre\fR)
855 .RE
856 .sp
857 .RS 4
858 .ie n \{\
859 \h'-04'\(bu\h'+03'\c
860 .\}
861 .el \{\
862 .sp -1
863 .IP \(bu 2.3
864 .\}
865 directory creation (\fBdcre\fR)
866 .RE
867 .sp
868 .RS 4
869 .ie n \{\
870 \h'-04'\(bu\h'+03'\c
871 .\}
872 .el \{\
873 .sp -1
874 .IP \(bu 2.3
875 .\}
876 file move or rename (\fBfmov\fR)
877 .RE
878 .sp
879 .RS 4
880 .ie n \{\
881 \h'-04'\(bu\h'+03'\c
882 .\}
883 .el \{\
884 .sp -1
885 .IP \(bu 2.3
886 .\}
887 directory move or rename (\fBdmov\fR)
888 .RE
889 .sp
890 .RS 4
891 .ie n \{\
892 \h'-04'\(bu\h'+03'\c
893 .\}
894 .el \{\
895 .sp -1
896 .IP \(bu 2.3
897 .\}
898 login (\fBlogin\fR)
899 .RE
900 .sp
901 .RS 4
902 .ie n \{\
903 \h'-04'\(bu\h'+03'\c
904 .\}
905 .el \{\
906 .sp -1
907 .IP \(bu 2.3
908 .\}
909 logout (\fBlogout\fR)
910 .RE
911 .PP
912 fce listener = \fIhost[:port]\fR \fB(G)\fR
913 .RS 4
914 Enables sending FCE events to the specified
915 \fIhost\fR, default
916 \fIport\fR
917 is 12250 if not specified\&. Specifying multiple listeners is done by having this option once for each of them\&.
918 .RE
919 .PP
920 fce version = \fI1|2\fR \fB(G)\fR
921 .RS 4
922 FCE protocol version, default is 1\&. You need version 2 for the fmov, dmov, login or logout events\&.
923 .RE
924 .PP
925 fce events = \fIfmod,fdel,ddel,fcre,dcre,fmov,dmov,login,logout\fR \fB(G)\fR
926 .RS 4
927 Specifies which FCE events are active, default is
928 \fIfmod,fdel,ddel,fcre,dcre\fR\&.
929 .RE
930 .PP
931 fce coalesce = \fIall|delete|create\fR \fB(G)\fR
932 .RS 4
933 Coalesce FCE events\&.
934 .RE
935 .PP
936 fce holdfmod = \fIseconds\fR \fB(G)\fR
937 .RS 4
938 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 multiple times for every "save"\&. Default: 60 seconds\&.
939 .RE
940 .PP
941 fce ignore names = \fINAME[/NAME2/\&.\&.\&.]\fR \fB(G)\fR
942 .RS 4
943 Slash delimited list of filenames for which FCE events shall not be generated\&. Default: \&.DS_Store\&.
944 .RE
945 .PP
946 fce notify script = \fIPATH\fR \fB(G)\fR
947 .RS 4
948 Script which will be executed for every FCE event, see contrib/shell_utils/fce_ev_script\&.shfrom the Netatalk sources for an example script\&.
949 .RE
950 .SS "Debug Parameters"
951 .PP
952 These options are useful for debugging only\&.
953 .PP
954 tickleval = \fInumber\fR \fB(G)\fR
955 .RS 4
956 Sets the tickle timeout interval (in seconds)\&. Defaults to 30\&.
957 .RE
958 .PP
959 timeout = \fInumber\fR \fB(G)\fR
960 .RS 4
961 Specify the number of tickles to send before timing out a connection\&. The default is 4, therefore a connection will timeout after 2 minutes\&.
962 .RE
963 .PP
964 client polling = \fIBOOLEAN\fR (default: \fIno\fR) \fB(G)\fR
965 .RS 4
966 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\&.
967 \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!
968 .sp
969 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\&.
970 .RE
971 .SS "Options for ACL handling"
972 .PP
973 By default, the effective permission of the authenticated user are only mapped to the mentioned UARights permission structure, not the UNIX mode\&. You can adjust this behaviour with the configuration option
974 \fBmac acls\fR:
975 .PP
976 map acls = \fInone|rights|mode\fR \fB(G)\fR
977 .RS 4
978 .PP
979 none
980 .RS 4
981 no mapping of ACLs
982 .RE
983 .PP
984 rights
985 .RS 4
986 effective permissions are mapped to UARights structure\&. This is the default\&.
987 .RE
988 .PP
989 mode
990 .RS 4
991 ACLs are additionally mapped to the UNIX mode of the filesystem object\&.
992 .RE
993 .RE
994 .PP
995 If you want to be able to display ACLs on the client, you must setup both client and server as part on a authentication domain (directory service, eg LDAP, Open Directory, Active Directory)\&. The reason is, in OS X ACLs are bound to UUIDs, not just uid\*(Aqs or gid\*(Aqs\&. Therefor Netatalk 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\&.
996 .PP
997 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)\&.
998 .PP
999 The following LDAP options must be configured for Netatalk:
1000 .PP
1001 ldap auth method = \fInone|simple|sasl\fR \fB(G)\fR
1002 .RS 4
1003 Authentication method:
1004 \fBnone | simple | sasl\fR
1005 .PP
1006 none
1007 .RS 4
1008 anonymous LDAP bind
1009 .RE
1010 .PP
1011 simple
1012 .RS 4
1013 simple LDAP bind
1014 .RE
1015 .PP
1016 sasl
1017 .RS 4
1018 SASL\&. Not yet supported !
1019 .RE
1020 .RE
1021 .PP
1022 ldap auth dn = \fIdn\fR \fB(G)\fR
1023 .RS 4
1024 Distinguished Name of the user for simple bind\&.
1025 .RE
1026 .PP
1027 ldap auth pw = \fIpassword\fR \fB(G)\fR
1028 .RS 4
1029 Distinguished Name of the user for simple bind\&.
1030 .RE
1031 .PP
1032 ldap server = \fIhost\fR \fB(G)\fR
1033 .RS 4
1034 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\&.
1035 .sp
1036 You can use
1037 \fBafpldaptest\fR(1)
1038 to syntactically check your config\&.
1039 .RE
1040 .PP
1041 ldap userbase = \fIbase dn\fR \fB(G)\fR
1042 .RS 4
1043 DN of the user container in LDAP\&.
1044 .RE
1045 .PP
1046 ldap userscope = \fIscope\fR \fB(G)\fR
1047 .RS 4
1048 Search scope for user search:
1049 \fBbase | one | sub\fR
1050 .RE
1051 .PP
1052 ldap groupbase = \fIbase dn\fR \fB(G)\fR
1053 .RS 4
1054 DN of the group container in LDAP\&.
1055 .RE
1056 .PP
1057 ldap groupscope = \fIscope\fR \fB(G)\fR
1058 .RS 4
1059 Search scope for user search:
1060 \fBbase | one | sub\fR
1061 .RE
1062 .PP
1063 ldap uuid attr = \fIdn\fR \fB(G)\fR
1064 .RS 4
1065 Name of the LDAP attribute with the UUIDs\&.
1066 .sp
1067 Note: this is used both for users and groups\&.
1068 .RE
1069 .PP
1070 ldap name attr = \fIdn\fR \fB(G)\fR
1071 .RS 4
1072 Name of the LDAP attribute with the users short name\&.
1073 .RE
1074 .PP
1075 ldap group attr = \fIdn\fR \fB(G)\fR
1076 .RS 4
1077 Name of the LDAP attribute with the groups short name\&.
1078 .RE
1079 .PP
1080 ldap uuid string = \fISTRING\fR \fB(G)\fR
1081 .RS 4
1082 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 separator\&.
1083 .sp
1084 Default: xxxxxxxx\-xxxx\-xxxx\-xxxx\-xxxxxxxxxxxx
1085 .RE
1086 .PP
1087 ldap uuid encoding = \fIstring | ms\-guid (default: string)\fR \fB(G)\fR
1088 .RS 4
1089 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\&.
1090 .sp
1091 See also the options
1092 \fBldap user filter\fR
1093 and
1094 \fBldap group filter\fR\&.
1095 .PP
1096 string
1097 .RS 4
1098 UUID is a string, use with eg OpenDirectory\&.
1099 .RE
1100 .PP
1101 ms\-guid
1102 .RS 4
1103 Binary objectGUID from Active Directory
1104 .RE
1105 .RE
1106 .PP
1107 ldap user filter = \fISTRING (default: unused)\fR \fB(G)\fR
1108 .RS 4
1109 Optional LDAP filter that matches user objects\&. This is necessary for Active Directory environments where users and groups are stored in the same directory subtree\&.
1110 .sp
1111 Recommended setting for Active Directory:
1112 \fIobjectClass=user\fR\&.
1113 .RE
1114 .PP
1115 ldap group filter = \fISTRING (default: unused)\fR \fB(G)\fR
1116 .RS 4
1117 Optional LDAP filter that matches group objects\&. This is necessary for Active Directory environments where users and groups are stored in the same directory subtree\&.
1118 .sp
1119 Recommended setting for Active Directory:
1120 \fIobjectClass=group\fR\&.
1121 .RE
1122 .SH "EXPLANATION OF VOLUME PARAMETERS"
1123 .SS "Parameters"
1124 .PP
1125 The section name defines the volume name\&. No two volumes may have the same name\&. The volume name cannot contain the
1126 \*(Aq:\*(Aq
1127 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\&.
1128 .PP
1129 path = \fIPATH\fR \fB(V)\fR
1130 .RS 4
1131 The path name must be a fully qualified path name\&.
1132 .RE
1133 .PP
1134 appledouble = \fIea|v2\fR \fB(V)\fR
1135 .RS 4
1136 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
1137 \fBea\fR\&.
1138 .RE
1139 .PP
1140 vol size limit = \fIsize in MiB\fR \fB(V)\fR
1141 .RS 4
1142 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\&.
1143 \fBIMPORTANT: \fR
1144 This is an approximated calculation taking into account 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\&.
1145 .RE
1146 .PP
1147 valid users = \fIuser @group\fR \fB(V)\fR
1148 .RS 4
1149 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:
1150 .sp
1151 .if n \{\
1152 .RS 4
1153 .\}
1154 .nf
1155 valid users = user "user 2" @group \(lq@group 2"
1156 .fi
1157 .if n \{\
1158 .RE
1159 .\}
1160 .RE
1161 .PP
1162 invalid users = \fIusers/groups\fR \fB(V)\fR
1163 .RS 4
1164 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\&.
1165 .RE
1166 .PP
1167 hosts allow = \fIIP host address/IP netmask bits [ \&.\&.\&. ]\fR \fB(V)\fR
1168 .RS 4
1169 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\&.
1170 .sp
1171 Example: hosts allow = 10\&.1\&.0\&.0/16 10\&.2\&.1\&.100 2001:0db8:1234::/48
1172 .RE
1173 .PP
1174 hosts deny = \fIIP host address/IP netmask bits [ \&.\&.\&. ]\fR \fB(V)\fR
1175 .RS 4
1176 Listed hosts and nets are rejected, all others are allowed\&.
1177 .sp
1178 Example: hosts deny = 192\&.168\&.100/24 10\&.1\&.1\&.1 2001:db8::1428:57ab
1179 .RE
1180 .PP
1181 cnid scheme = \fIbackend\fR \fB(V)\fR
1182 .RS 4
1183 set the CNID backend to be used for the volume, default is [@DEFAULT_CNID_SCHEME@] available schemes: [@compiled_backends@]
1184 .RE
1185 .PP
1186 ea = \fInone|auto|sys|ad\fR \fB(V)\fR
1187 .RS 4
1188 Specify how Extended Attributes
1189 are stored\&.
1190 \fBauto\fR
1191 is the default\&.
1192 .PP
1193 auto
1194 .RS 4
1195 Try
1196 \fBsys\fR
1197 (by setting an EA on the shared directory itself), fallback to
1198 \fBad\fR\&. Requires writable volume for performing test\&. "\fBread only = yes\fR" overwrites
1199 \fBauto\fR
1200 with
1201 \fBnone\fR\&. Use explicit "\fBea = sys|ad\fR" for read\-only volumes where appropriate\&.
1202 .RE
1203 .PP
1204 sys
1205 .RS 4
1206 Use filesystem Extended Attributes\&.
1207 .RE
1208 .PP
1209 ad
1210 .RS 4
1211 Use files in
1212 \fI\&.AppleDouble\fR
1213 directories\&.
1214 .RE
1215 .PP
1216 none
1217 .RS 4
1218 No Extended Attributes support\&.
1219 .RE
1220 .RE
1221 .PP
1222 mac charset = \fICHARSET\fR \fB(V)\fR
1223 .RS 4
1224 specifies the Mac client charset for this Volume, e\&.g\&.
1225 \fIMAC_ROMAN\fR,
1226 \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\&.
1227 .RE
1228 .PP
1229 casefold = \fBoption\fR \fB(V)\fR
1230 .RS 4
1231 The casefold option handles, if the case of filenames should be changed\&. The available options are:
1232 .sp
1233 \fBtolower\fR
1234 \- Lowercases names in both directions\&.
1235 .sp
1236 \fBtoupper\fR
1237 \- Uppercases names in both directions\&.
1238 .sp
1239 \fBxlatelower\fR
1240 \- Client sees lowercase, server sees uppercase\&.
1241 .sp
1242 \fBxlateupper\fR
1243 \- Client sees uppercase, server sees lowercase\&.
1244 .RE
1245 .PP
1246 password = \fIpassword\fR \fB(V)\fR
1247 .RS 4
1248 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)\&.
1249 .RE
1250 .PP
1251 file perm = \fImode\fR \fB(V)\fR, directory perm = \fImode\fR \fB(V)\fR
1252 .RS 4
1253 Add(or) with the client requested permissions:
1254 \fBfile perm\fR
1255 is for files only,
1256 \fBdirectory perm\fR
1257 is for directories only\&. Don\*(Aqt use with "\fBunix priv = no\fR"\&.
1258 .PP
1259 \fBExample.\ \&Volume for a collaborative workgroup\fR
1260 .sp
1261 .if n \{\
1262 .RS 4
1263 .\}
1264 .nf
1265 file perm = 0660 directory perm =
1266               0770
1267 .fi
1268 .if n \{\
1269 .RE
1270 .\}
1271
1272 .RE
1273 .PP
1274 umask = \fImode\fR \fB(V)\fR
1275 .RS 4
1276 set perm mask\&. Don\*(Aqt use with "\fBunix priv = no\fR"\&.
1277 .RE
1278 .PP
1279 preexec = \fIcommand\fR \fB(V)\fR
1280 .RS 4
1281 command to be run when the volume is mounted, ignored for user defined volumes
1282 .RE
1283 .PP
1284 postexec = \fIcommand\fR \fB(V)\fR
1285 .RS 4
1286 command to be run when the volume is closed, ignored for user defined volumes
1287 .RE
1288 .PP
1289 root preexec = \fIcommand\fR \fB(V)\fR
1290 .RS 4
1291 command to be run as root when the volume is mounted, ignored for user defined volumes
1292 .RE
1293 .PP
1294 root postexec = \fIcommand\fR \fB(V)\fR
1295 .RS 4
1296 command to be run as root when the volume is closed, ignored for user defined volumes
1297 .RE
1298 .PP
1299 rolist = \fBusers/groups\fR \fB(V)\fR
1300 .RS 4
1301 Allows certain users and groups to have read\-only access to a share\&. This follows the allow option format\&.
1302 .RE
1303 .PP
1304 rwlist = \fIusers/groups\fR \fB(V)\fR
1305 .RS 4
1306 Allows certain users and groups to have read/write access to a share\&. This follows the allow option format\&.
1307 .RE
1308 .PP
1309 veto files = \fIvetoed names\fR \fB(V)\fR
1310 .RS 4
1311 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\&. "veto files = veto1/", "veto files = veto1/veto2/"\&.
1312 .RE
1313 .SS "Volume options"
1314 .PP
1315 Boolean volume options\&.
1316 .PP
1317 acls = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1318 .RS 4
1319 Whether to flag volumes as supporting ACLs\&. If ACL support is compiled in, this is yes by default\&.
1320 .RE
1321 .PP
1322 cnid dev = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1323 .RS 4
1324 Whether to use the device number in the CNID backends\&. Helps when the device number is not constant across a reboot, eg cluster, \&.\&.\&.
1325 .RE
1326 .PP
1327 convert appledouble = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1328 .RS 4
1329 Whether automatic conversion from
1330 \fBappledouble = v2\fR
1331 to
1332 \fBappledouble = ea\fR
1333 is performed when accessing filesystems from clients\&. This is generally useful, but costs some performance\&. It\*(Aqs recommendable to run
1334 \fBdbd\fR
1335 on volumes and do the conversion with that\&. Then this option can be set to no\&.
1336 .RE
1337 .PP
1338 delete veto files = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1339 .RS 4
1340 This option is used when Netatalk is attempting to delete a directory that contains one or more vetoed files or directories (see the veto files option)\&. If this option is set to no (the default) then if a directory contains any non\-vetoed files or directories then the directory delete will fail\&. This is usually what you want\&.
1341 .sp
1342 If this option is set to yes, then Netatalk will attempt to recursively delete any files and directories within the vetoed directory\&.
1343 .RE
1344 .PP
1345 follow symlinks = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1346 .RS 4
1347 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"\&.
1348 .if n \{\
1349 .sp
1350 .\}
1351 .RS 4
1352 .it 1 an-trap
1353 .nr an-no-space-flag 1
1354 .nr an-break-flag 1
1355 .br
1356 .ps +1
1357 \fBNote\fR
1358 .ps -1
1359 .br
1360 This option will subtly break when the symlinks point across filesystem boundaries\&.
1361 .sp .5v
1362 .RE
1363 .RE
1364 .PP
1365 invisible dots = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1366 .RS 4
1367 make dot files invisible\&. WARNING: enabling this option will lead to unwanted sideeffects were OS X applications when saving files to a temporary file starting with a dot first, then renaming the temp file to its final name, result in the saved file being invisible\&. The only thing this option is useful for is making files that start with a dot invisible on Mac OS 9\&. It\*(Aqs completely useless on Mac OS X, as both in Finder and in Terminal files starting with a dot are hidden anyway\&.
1368 .RE
1369 .PP
1370 network ids = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1371 .RS 4
1372 Whether the server support network ids\&. Setting this to
1373 \fIno\fR
1374 will result in the client not using ACL AFP functions\&.
1375 .RE
1376 .PP
1377 preexec close = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1378 .RS 4
1379 A non\-zero return code from preexec close the volume being immediately, preventing clients to mount/see the volume in question\&.
1380 .RE
1381 .PP
1382 read only = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1383 .RS 4
1384 Specifies the share as being read only for all users\&. Overwrites
1385 \fBea = auto\fR
1386 with
1387 \fBea = none\fR
1388 .RE
1389 .PP
1390 root preexec close= \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1391 .RS 4
1392 A non\-zero return code from root_preexec closes the volume immediately, preventing clients to mount/see the volume in question\&.
1393 .RE
1394 .PP
1395 search db = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1396 .RS 4
1397 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\&.
1398 .RE
1399 .PP
1400 stat vol = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1401 .RS 4
1402 Whether to stat volume path when enumerating volumes list, useful for automounting or volumes created by a preexec script\&.
1403 .RE
1404 .PP
1405 time machine = \fIBOOLEAN\fR (default: \fIno\fR) \fB(V)\fR
1406 .RS 4
1407 Whether to enable Time Machine support for this volume\&.
1408 .RE
1409 .PP
1410 unix priv = \fIBOOLEAN\fR (default: \fIyes\fR) \fB(V)\fR
1411 .RS 4
1412 Whether to use AFP3 UNIX privileges\&. This should be set for OS X clients\&. See also:
1413 \fBfile perm\fR,
1414 \fBdirectory perm\fR
1415 and
1416 \fBumask\fR\&.
1417 .RE
1418 .SH "CNID BACKENDS"
1419 .PP
1420 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
1421 @localstatedir@/netatalk/CNID/(volumename)/\&.AppleDB/
1422 directory\&.
1423 .PP
1424 cdb
1425 .RS 4
1426 "Concurrent database", backend is based on Oracle Berkley DB\&. With this backend several
1427 \fBafpd\fR
1428 daemons access the CNID database directly\&. Berkeley DB locking is used to synchronize access, if more than one
1429 \fBafpd\fR
1430 process is active for a volume\&. The drawback is, that the crash of a single
1431 \fBafpd\fR
1432 process might corrupt the database\&.
1433 .RE
1434 .PP
1435 dbd
1436 .RS 4
1437 Access to the CNID database is restricted to the
1438 \fBcnid_metad\fR
1439 daemon process\&.
1440 \fBafpd\fR
1441 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
1442 \fBcdb\fR
1443 .RE
1444 .PP
1445 last
1446 .RS 4
1447 This backend is an exception, in terms of ID persistency\&. ID\*(Aqs are only valid for the current session\&. This is basically what
1448 \fBafpd\fR
1449 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
1450 \fIread only mode\fR
1451 automatically\&.
1452 .sp
1453 \fBWarning\fR: It is
1454 \fINOT\fR
1455 recommended to use this backend for volumes anymore, as
1456 \fBafpd\fR
1457 now relies heavily on a persistent ID database\&. Aliases will likely not work and filename mangling is not supported\&.
1458 .RE
1459 .PP
1460 Even though
1461 \fB\&./configure \-\-help\fR
1462 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\&.
1463 .SH "CHARSET OPTIONS"
1464 .PP
1465 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\&.
1466 .PP
1467 \fBafpd\fR
1468 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
1469 :f0\&. Some special characters will be converted as to :xx notation as well\&. \*(Aq/\*(Aq will be encoded to
1470 :2f, if
1471 \fBusedots\fR
1472 is not specified, a leading dot \*(Aq\&.\*(Aq will be encoded as
1473 :2e\&.
1474 .PP
1475 This version now uses UTF\-8 as the default encoding for names\&. \*(Aq/\*(Aq will be converted to \*(Aq:\*(Aq\&.
1476 .PP
1477 The
1478 \fBvol charset\fR
1479 option will allow you to select another volume encoding\&. E\&.g\&. for western users another useful setting could be vol charset ISO\-8859\-15\&.
1480 \fBafpd\fR
1481 will accept any
1482 \fBiconv\fR(1)
1483 provided charset\&. If a character cannot be converted from the
1484 \fBmac charset\fR
1485 to the selected
1486 \fBvol charset\fR, afpd will save it as a CAP encoded character\&. For AFP3 clients,
1487 \fBafpd\fR
1488 will convert the UTF\-8
1489 character to
1490 \fBmac charset\fR
1491 first\&. If this conversion fails, you\*(Aqll receive a \-50 error on the mac\&.
1492 .PP
1493 \fINote\fR: Whenever you can, please stick with the default UTF\-8 volume format\&.
1494 .SH "SEE ALSO"
1495 .PP
1496 \fBafpd\fR(8),
1497 \fBafppasswd\fR(5),
1498 \fBafp_signature.conf\fR(5),
1499 \fBextmap.conf\fR(5),
1500 \fBcnid_metad\fR(8)