]> arthur.barton.de Git - netatalk.git/blob - man/man5/afpd.conf.5.tmpl
Rev versions to 2.1beta2, checkin changed manpages
[netatalk.git] / man / man5 / afpd.conf.5.tmpl
1 '\" t
2 .\"     Title: afpd.conf
3 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
5 .\"      Date: 23 December 2009
6 .\"    Manual: Netatalk 2.1
7 .\"    Source: Netatalk 2.1
8 .\"  Language: English
9 .\"
10 .TH "AFPD\&.CONF" "5" "23 December 2009" "Netatalk 2.1" "Netatalk 2.1"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
15 .nh
16 .\" disable justification (adjust text to left margin only)
17 .ad l
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
21 .SH "NAME"
22 afpd.conf \- Configuration file used by afpd(8) to determine the setup of its file sharing services
23 .SH "DESCRIPTION"
24 .PP
25 :ETCDIR:/afpd\&.conf
26 is the configuration file used by
27 \fBafpd\fR
28 to determine the behavior and configuration of the different virtual file servers that it provides\&.
29 .PP
30 Any line not prefixed with # is interpreted\&. The configuration lines are composed like: server name [ options ] If a
31 \fB\-\fR
32 is used instead of a server name, the default server is specified\&. Server names must be quoted if they contain spaces\&. They must not contain ":" or "@"\&. 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\&.
33 .PP
34 .if n \{\
35 .sp
36 .\}
37 .RS 4
38 .it 1 an-trap
39 .nr an-no-space-flag 1
40 .nr an-break-flag 1
41 .br
42 .ps +1
43 \fBNote\fR
44 .ps -1
45 .br
46 .PP
47 Each server has to be configured on a
48 \fBsingle\fR
49 line\&. Though newline escaping is supported\&.
50 .sp .5v
51 .RE
52 The possible options and their meanings are:
53 .SH "APPLEVOLUMES FILES"
54 .PP
55 \-defaultvol \fI[path]\fR
56 .RS 4
57 Specifies path to AppleVolumes\&.default file (default is
58 :ETCDIR:/AppleVolumes\&.default)\&.
59 .RE
60 .PP
61 \-systemvol \fI[path]\fR
62 .RS 4
63 Specifies path to AppleVolumes\&.system file (default is
64 :ETCDIR:/AppleVolumes\&.system)\&.
65 .RE
66 .PP
67 \-[no]uservol
68 .RS 4
69 Enables or disables reading of the users\' individual volumes file entirely\&.
70 .RE
71 .PP
72 \-[no]uservolfirst
73 .RS 4
74 Enables or disables reading of the users\' individual volumes file before processing the global
75 AppleVolumes\&.default
76 file\&.
77 .RE
78 .SH "AUTHENTICATION METHODS"
79 .PP
80 \-uamlist \fI[uams list]\fR
81 .RS 4
82 Comma separated list of UAMs\&. (The default is uams_dhx\&.so,uams_dhx2\&.so)\&.
83 .sp
84 The most commonly used UAMs are:
85 .PP
86 uams_guest\&.so
87 .RS 4
88 allows guest logins
89 .RE
90 .PP
91 uams_clrtxt\&.so
92 .RS 4
93 (uams_pam\&.so or uams_passwd\&.so) Allow logins with passwords transmitted in the clear\&.
94 .RE
95 .PP
96 uams_randum\&.so
97 .RS 4
98 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
99 \fB\-passwdfile\fR\&. See
100 \fBafppasswd\fR(1)
101 for details
102 .RE
103 .PP
104 uams_dhx\&.so
105 .RS 4
106 (uams_dhx_pam\&.so or uams_dhx_passwd\&.so) Allow Diffie\-Hellman eXchange (DHX) for authentication\&.
107 .RE
108 .PP
109 uams_dhx2\&.so
110 .RS 4
111 (uams_dhx2_pam\&.so or uams_dhx2_passwd\&.so) Allow Diffie\-Hellman eXchange 2 (DHX2) for authentication\&.
112 .RE
113 .PP
114 uam_gss\&.so
115 .RS 4
116 Allow Kerberos V for authentication (optional)
117 .RE
118 .RE
119 .PP
120 \-uampath \fI[path]\fR
121 .RS 4
122 Sets the default path for UAMs for this server (default is :ETCDIR:/uams)\&.
123 .RE
124 .PP
125 \-k5keytab \fI[path]\fR, \-k5service \fI[service]\fR, \-k5realm \fI[realm]\fR
126 .RS 4
127 These are required if the server supports the Kerberos 5 authentication UAM\&.
128 .RE
129 .PP
130 \-ntdomain, \-ntseparator
131 .RS 4
132 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\&.
133 .RE
134 .SH "CODEPAGE OPTIONS"
135 .PP
136 With OS X Apple introduced the AFP3 protocol\&. One of the big changes was, that AFP3 uses Unicode names encoded as Decomposed UTF\-8 (UTF8\-MAC)\&. Previous AFP/OS versions used codepages like MacRoman, MacCentralEurope, etc\&.
137 .PP
138 To be able to serve AFP3 and older clients at the same time,
139 \fBafpd\fR
140 needs to be able to convert between UTF\-8 and Mac codepages\&. Even OS X clients partly still rely on codepages\&. As there\'s no way,
141 \fBafpd\fR
142 can detect the codepage a pre AFP3 client uses, you have to specify it using the
143 \fB\-maccodepage\fR
144 option\&. The default is MacRoman, which should be fine for most western users\&.
145 .PP
146 As
147 \fBafpd\fR
148 needs to interact with unix operating system as well, it need\'s to be able to convert from UTF8\-MAC/MacCodepage to the unix codepage\&. By default
149 \fBafpd\fR
150 uses the systems LOCALE, or ASCII if your system doesn\'t support locales\&. You can set the unix codepage using the
151 \fB\-unixcodepage\fR
152 option\&. If you\'re using extended characters in the configuration files for
153 \fBafpd\fR, make sure your terminal matches the
154 \fB\-unixcodepage\fR\&.
155 .PP
156 \-unixcodepage [\fICODEPAGE\fR]
157 .RS 4
158 Specifies the servers unix codepage, e\&.g\&. "ISO\-8859\-15" or "UTF8"\&. This is used to convert strings to/from the systems locale, e\&.g\&. for authenthication, server messages and volume names\&. Defaults to LOCALE if your system supports it, otherwise ASCII will be used\&.
159 .RE
160 .PP
161 \-maccodepage [\fICODEPAGE\fR]
162 .RS 4
163 Specifies the mac clients codepage, e\&.g\&. "MAC_ROMAN"\&. This is used to convert strings and filenames to the clients codepage for OS9 and Classic, i\&.e\&. for authentication and AFP messages (SIGUSR2 messaging)\&. This will also be the default for the volumes maccharset\&. Defaults to MAC_ROMAN\&.
164 .RE
165 .SH "PASSWORD OPTIONS"
166 .PP
167 \-loginmaxfail [\fInumber\fR]
168 .RS 4
169 Sets the maximum number of failed logins, if supported by the UAM (currently none)
170 .RE
171 .PP
172 \-passwdfile [\fIpath\fR]
173 .RS 4
174 Sets the path to the Randnum UAM passwd file for this server (default is :ETCDIR:/afppasswd)\&.
175 .RE
176 .PP
177 \-passwdminlen [\fInumber\fR]
178 .RS 4
179 Sets the minimum password length, if supported by the UAM
180 .RE
181 .PP
182 \-[no]savepassword
183 .RS 4
184 Enables or disables the ability of clients to save passwords locally
185 .RE
186 .PP
187 \-[no]setpassword
188 .RS 4
189 Enables or disables the ability of clients to change their passwords via chooser or the "connect to server" dialog
190 .RE
191 .SH "TRANSPORT PROTOCOLS"
192 .PP
193 \-[no]ddp
194 .RS 4
195 Enables or disables AFP\-over\-Appletalk\&. If
196 \fB\-proxy\fR
197 is specified, you must instead use
198 \fB\-uamlist ""\fR
199 to prevent DDP connections from working\&. (default is \-noddp)
200 .RE
201 .PP
202 \-[no]tcp
203 .RS 4
204 Enables or disables AFP\-over\-TCP (default is \-tcp)
205 .RE
206 .PP
207 \-transall
208 .RS 4
209 Make both available
210 .RE
211 .SH "TRANSPORT OPTIONS"
212 .PP
213 \-advertise_ssh
214 .RS 4
215 Allows Mac OS X clients (10\&.3\&.3\-10\&.4) to automagically establish a tunneled AFP connection through SSH\&. If this option is set, the server\'s answers to client\'s FPGetSrvrInfo requests contain an additional entry\&. It depends on both client\'s settings and a correctly configured and running
216 \fBsshd\fR(8)
217 on the server to let things work\&.
218 .if n \{\
219 .sp
220 .\}
221 .RS 4
222 .it 1 an-trap
223 .nr an-no-space-flag 1
224 .nr an-break-flag 1
225 .br
226 .ps +1
227 \fBNote\fR
228 .ps -1
229 .br
230 Setting this option is not recommended since globally encrypting AFP connections via SSH will increase the server\'s load significantly\&. On the other hand, Apple\'s client side implementation of this feature in MacOS X versions prior to 10\&.3\&.4 contained a security flaw\&.
231 .sp .5v
232 .RE
233 .RE
234 .PP
235 \-ddpaddr \fI[ddp address]\fR
236 .RS 4
237 Specifies the DDP address of the server\&. The default is to auto\-assign an address (0\&.0)\&. This is only useful if you are running AppleTalk on more than one interface\&.
238 .RE
239 .PP
240 \-fqdn \fI[name:port]\fR
241 .RS 4
242 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\&.
243 .RE
244 .PP
245 \-hostname\fI [name]\fR
246 .RS 4
247 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
248 \fB\-ipaddr\fR\&.
249 .RE
250 .PP
251 \-ipaddr \fI[ip address]\fR
252 .RS 4
253 Specifies the IP address that the server should advertise
254 \fBand\fR
255 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\&. This option also allows to use one machine to advertise the AFP\-over\-TCP/IP settings of another machine via NBP
256 when used together with the
257 \fB\-proxy\fR
258 option\&.
259 .PP \fBExample.\ \&IP/hostname example configuration\fR fluxxus \fB\-hostname\fR afp\&.apple\&.com \fB\-ipaddr\fR 127\&.0\&.0\&.1 \fB\-fqdn\fR www\&.microsoft\&.comResult:.TS
260 allbox tab(:);
261 l
262 l
263 l.
264 T{
265 (UTF8) Server name: fluxxus
266 T}
267 T{
268 Listening and advertised network address:
269                     127\&.0\&.0\&.1
270 T}
271 T{
272 Advertised network address:
273                     www\&.microsoft\&.com
274 T}
275 .TE
276 .sp 1
277 .RE
278 .PP
279 \-port \fI[port number]\fR
280 .RS 4
281 Allows a different TCP port to be used for AFP\-over\-TCP\&. The default is 548\&.
282 .RE
283 .PP
284 \-proxy
285 .RS 4
286 Runs an AppleTalk proxy server for the specified AFP\-over\-TCP server\&. If the address and port aren\'t given, then the first IP address of the system and port 548 will be used\&. If you don\'t want the proxy server to act as a DDP
287 server as well, set
288 \fB\-uamlist ""\fR\&.
289 .RE
290 .PP
291 \-server_quantum \fI[number]\fR
292 .RS 4
293 This specifies the DSI server quantum\&. The default value is 303840\&. The maximum value is 0xFFFFFFFFF, the minimum is 32000\&. If you specify a value that is out of range, the default value will be set\&. Do not change this value unless you\'re absolutely sure, what you\'re doing
294 .RE
295 .PP
296 \-slp
297 .RS 4
298 Register this server using the Service Location Protocol (if SLP
299 support was compiled in)\&.
300 .RE
301 .SH "MISCELLANEOUS OPTIONS"
302 .PP
303 \-admingroup \fI[group]\fR
304 .RS 4
305 Allows users of a certain group to be seen as the superuser when they log in\&. This option is disabled by default\&.
306 .RE
307 .PP
308 \-authprintdir \fI[path]\fR
309 .RS 4
310 Specifies the path to be used (per server) to store the files required to do CAP\-style print authentication which papd will examine to determine if a print job should be allowed\&. These files are created at login and if they are to be properly removed, this directory probably needs to be umode 1777\&.
311 .if n \{\
312 .sp
313 .\}
314 .RS 4
315 .it 1 an-trap
316 .nr an-no-space-flag 1
317 .nr an-break-flag 1
318 .br
319 .ps +1
320 \fBNote\fR
321 .ps -1
322 .br
323 \fB\-authprintdir\fR
324 will only work for clients connecting via DDP\&. Almost all modern Clients will use TCP\&.
325 .sp .5v
326 .RE
327 .RE
328 .PP
329 \-client_polling
330 .RS 4
331 With this switch enabled, afpd won\'t advertise that it is capable of server notifications, so that connected clients poll the server every 10 seconds to detect changes in opened server windows\&.
332 \fINote\fR: Depending on the number of simultaneously connected clients and the network\'s speed, this can lead to a significant higher load on your network!
333 .if n \{\
334 .sp
335 .\}
336 .RS 4
337 .it 1 an-trap
338 .nr an-no-space-flag 1
339 .nr an-break-flag 1
340 .br
341 .ps +1
342 \fBNote\fR
343 .ps -1
344 .br
345 Do not use this option any longer as Netatalk 2\&.x correctly supports server notifications, allowing connected clients to update folder listings in case another client changed the contents\&.
346 .sp .5v
347 .RE
348 .RE
349 .PP
350 \-closevol
351 .RS 4
352 Immediately unmount volumes removed from AppleVolumes files on SIGHUP sent to the afp master process\&.
353 .RE
354 .PP
355 \-cnidserver \fI[ipaddress:port]\fR
356 .RS 4
357 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\&.
358 .RE
359 .PP
360 \-guestname \fI[name]\fR
361 .RS 4
362 Specifies the user that guests should use (default is "nobody")\&. The name should be quoted\&.
363 .RE
364 .PP
365 \-[no]icon
366 .RS 4
367 [Dont\'t] Use the platform\-specific icon\&. Recent Mac OS don\'t display it any longer\&.
368 .RE
369 .PP
370 \-loginmesg \fI[message]\fR
371 .RS 4
372 Sets a message to be displayed when clients logon to the server\&. The message should be in
373 \fBunixcodepage\fR
374 and should be quoted\&. Extended characters are allowed\&.
375 .RE
376 .PP
377 \-nodebug
378 .RS 4
379 Disables debugging\&.
380 .RE
381 .PP
382 \-sleep \fI[number]\fR
383 .RS 4
384 AFP 3\&.x waits
385 \fInumber\fR
386 hours before disconnecting clients in sleep mode\&. Default is 10 hours\&.
387 .RE
388 .PP
389 \-signature { user:<text> | auto }
390 .RS 4
391 Specify a server signature\&. This option is useful while running multiple independent instances of afpd on one machine (eg\&. in clustered environments, to provide fault isolation etc\&.)\&. Default is "auto"\&. "auto" signature type allows afpd generating signature and saving it to
392 :ETCDIR:/afp_signature\&.conf
393 automatically (based on random number)\&. "host" signature type switches back to "auto" because it is obsoleted\&. "user" signature type allows administrator to set up a signature string manually\&. The maximum length is 16 characters\&.
394 .PP
395 \fBExample.\ \&Three server definitions using 2 different server signatures\fR
396 .sp
397 .if n \{\
398 .RS 4
399 .\}
400 .nf
401 first \-signature user:USERS 
402 second \-signature user:USERS 
403 third \-signature user:ADMINS
404 .fi
405 .if n \{\
406 .RE
407 .\}
408
409
410 First two servers will appear as one logical AFP service to the clients \- if user logs in to first one and then connects to second one, session will be automatically redirected to the first one\&. But if client connects to first and then to third, will be asked for password twice and will see resources of both servers\&. Traditional method of signature generation causes two independent afpd instances to have the same signature and thus cause clients to be redirected automatically to server (s)he logged in first\&.
411 .RE
412 .PP
413 \-volnamelen \fI[number] \fR
414 .RS 4
415 Max length of UTF8\-MAC volume name for Mac OS X\&. Note that Hangul is especially sensitive to this\&.
416 .sp
417 .if n \{\
418 .RS 4
419 .\}
420 .nf
421 73:  limit of Mac OS X 10\&.1
422 80:  limit for Mac OS X 10\&.4/10\&.5 (default)
423 123: limit for Mac OS X 10\&.6
424 255: limit of spec
425 .fi
426 .if n \{\
427 .RE
428 .\}
429 .sp
430 Mac OS 9 and earlier are not influenced by this, because Maccharset volume name is always limitted to 27 bytes\&.
431 .RE
432 .SH "LOGGING OPTIONS"
433 .PP
434 \-setuplog "\fI<logtype> <loglevel> [<filename>]\fR"
435 .RS 4
436 Specify that any message of a loglevel up to the given
437 \fBloglevel\fR
438 should be logged to the given file\&. If the filename is ommited the loglevel applies to messages passed to syslog\&.
439 .sp
440 By default (no explicit
441 \fB\-setuplog\fR
442 and no buildtime configure flag
443 \fB\-\-with\-logfile\fR) afpd logs to syslog with a default logging setup equivalent to
444 \fB"\-setuplog default log_info\fR"\&.
445 .sp
446 If build with
447 \fB\-\-with\-logfile\fR
448 (default logfile
449 \fI/var/log/netatalk\&.log\fR) or
450 \fB\-\-with\-logfile=somefile\fR
451 afpd defaults to a setup that is equivalent to "\fB\-setuplog default log_info [\fR\fB\fInetatalk\&.log|somefile]\fR\fR"\&.
452 .sp
453 logtypes: Default, AFPDaemon, Logger, UAMSDaemon
454 .sp
455 loglevels: LOG_SEVERE, LOG_ERROR, LOG_WARN, LOG_NOTE, LOG_INFO, LOG_DEBUG, LOG_DEBUG6, LOG_DEBUG7, LOG_DEBUG8, LOG_DEBUG9, LOG_MAXDEBUG
456 .if n \{\
457 .sp
458 .\}
459 .RS 4
460 .it 1 an-trap
461 .nr an-no-space-flag 1
462 .nr an-break-flag 1
463 .br
464 .ps +1
465 \fBNote\fR
466 .ps -1
467 .br
468 The config is case\-ignoring
469 .sp .5v
470 .RE
471 .PP
472 \fBExample.\ \&Useful default config\fR
473 .sp
474 .if n \{\
475 .RS 4
476 .\}
477 .nf
478 \-setuplog "default log_info /var/log/afpd\&.log"
479 .fi
480 .if n \{\
481 .RE
482 .\}
483 .PP
484 \fBExample.\ \&Debugging config\fR
485 .sp
486 .if n \{\
487 .RS 4
488 .\}
489 .nf
490 \-setuplog "default log_maxdebug /var/log/afpd\&.log"
491 .fi
492 .if n \{\
493 .RE
494 .\}
495 .PP
496 \fBExample.\ \&afpd logging to different files\fR
497 .sp
498 .if n \{\
499 .RS 4
500 .\}
501 .nf
502 \-setuplog "default log_info /var/log/afpd\&.log"
503 \-setuplog "UAMSDaemon log_maxdebug /var/log/uams\&.log"
504 .fi
505 .if n \{\
506 .RE
507 .\}
508 .RE
509 .PP
510 \-unsetuplog "\fI<logtype> [<filename>]\fR"
511 .RS 4
512 Note that for
513 \fBunsetuplog\fR
514 specifying any string as filename is sufficient for the config parser to distinguish between requests to disable syslog logging or file\-logging\&.
515 .PP
516 \fBExample.\ \&Disable afpd logging set at build-time from configure\fR
517 .sp
518 .if n \{\
519 .RS 4
520 .\}
521 .nf
522 \-unsetuplog "default \-"
523 .fi
524 .if n \{\
525 .RE
526 .\}
527 .RE
528 .SH "DEBUG OPTIONS"
529 .PP
530 These options are useful for debugging only\&.
531 .PP
532 \-tickleval \fI[number]\fR
533 .RS 4
534 Sets the tickle timeout interval (in seconds)\&. Defaults to 30\&.
535 .RE
536 .PP
537 \-timeout \fI[number]\fR
538 .RS 4
539 Specify the number of tickles to send before timing out a connection\&. The default is 4, therefore a connection will timeout after 2 minutes\&.
540 .RE
541 .SH "EXAMPLES"
542 .PP
543 \fBExample.\ \&afpd.conf default configuration\fR
544 .sp
545 .if n \{\
546 .RS 4
547 .\}
548 .nf
549 \- \-transall \-uamlist uams_dhx\&.so,uams_dhx2\&.so
550 .fi
551 .if n \{\
552 .RE
553 .\}
554 .PP
555 \fBExample.\ \&afpd.conf MacCyrillic setup / UTF8 unix locale\fR
556 .sp
557 .if n \{\
558 .RS 4
559 .\}
560 .nf
561 \- \-transall \-maccodepage mac_cyrillic \-unixcodepage utf8
562 .fi
563 .if n \{\
564 .RE
565 .\}
566 .PP
567 \fBExample.\ \&afpd.conf setup for Kerberos V auth with newline escaping\fR
568 .sp
569 .if n \{\
570 .RS 4
571 .\}
572 .nf
573 \- \-transall \-uamlist uams_dhx\&.so,uams_dhx2\&.so,uams_guest\&.so,uams_gss\&.so \e 
574 \-k5service afpserver \-k5keytab /path/to/afpserver\&.keytab \e 
575 \-k5realm YOUR\&.REALM \-fqdn your\&.fqdn\&.namel:548
576 .fi
577 .if n \{\
578 .RE
579 .\}
580 .PP
581 \fBExample.\ \&afpd.conf letting afpd appear as three servers on the net\fR
582 .sp
583 .if n \{\
584 .RS 4
585 .\}
586 .nf
587 "Guest Server" \-uamlist uams_guest\&.so \-loginmesg "Welcome guest!"
588 "User Server" \-uamlist uams_dhx2\&.so \-port 12000
589 "special" \-notcp \-defaultvol <path> \-systemvol <path>
590 .fi
591 .if n \{\
592 .RE
593 .\}
594 .SH "SEE ALSO"
595 .PP
596 \fBafpd\fR(8),
597 \fBafppasswd\fR(1),
598 \fBAppleVolumes.default\fR(5),
599 \fBafp_signature.conf\fR(5)