]> arthur.barton.de Git - netatalk.git/blob - man/man5/afpd.conf.5.tmpl
62040ba6bd9e230b8857ecb4b9e83ff9a31cc10e
[netatalk.git] / man / man5 / afpd.conf.5.tmpl
1 .TH afpd.conf 5 "05 Jan 2004" 2.0-rc2 Netatalk 
2 .SH NAME
3 afpd.conf \- Configuration file used by afpd(8) to determine the setup of its file sharing services
4 .SH DESCRIPTION
5 \fB:ETCDIR:/afpd.conf\fR is the configuration file
6 used by afpd to determine the behavior and
7 configuration of the different virtual file servers that it
8 provides.
9 .PP
10 Any line not prefixed with # is interpreted. The configuration lines
11 are composed like: server name [ options ] If a \fB\-\fR is used
12 instead of a server name, the default server is specified. Server names
13 must be quoted if they contain spaces. They must not contain ":" or "@".
14 The path name must be a fully qualified path name, or a path name using
15 either the ~ shell shorthand or any of the substitution variables, which
16 are listed below.
17 .PP
18 .RS 
19 \fBNote\fR
20 .PP
21 Each server has to be configured on a \fBsingle\fR line.
22 .RE
23
24 The possible options and their meanings are:
25 .SH "APPLEVOLUMES FILES"
26 .TP 
27 \-defaultvol \fI[path]\fR
28 Specifies path to AppleVolumes.default file (default is
29 \fB:ETCDIR:/AppleVolumes.default\fR).
30 .TP 
31 \-systemvol \fI[path]\fR
32 Specifies path to AppleVolumes.system file (default is
33 \fB:ETCDIR:/AppleVolumes.system\fR).
34 .TP 
35 \-[no]uservol
36 Enables or disables reading of the users' individual volumes
37 file entirely.
38 .TP 
39 \-[no]uservolfirst
40 Enables or disables reading of the users' individual volumes
41 file before processing the global
42 \fBAppleVolumes.default\fR file.
43 .SH "AUTHENTICATION METHODS"
44 .TP 
45 \-uamlist \fI[uams list]\fR
46 Comma separated list of UAMs. (The default is
47 uams_guest.so,uams_clrtxt.so,uams_dhx.so).
48
49 The most commonly used UAMs are:
50 .RS 
51 .TP 
52 uams_guest.so
53 allows guest logins
54 .TP 
55 uams_clrtxt.so
56 (uams_pam.so or uams_passwd.so) Allow logins with
57 passwords transmitted in the clear.
58 .TP 
59 uams_randum.so
60 allows Random Number and Two\-Way Random Number Exchange
61 for authentication (requires a separate file containing the
62 passwords, either :ETCDIR:/afppasswd file or the one specified
63 via \fB\-passwdfile\fR. See \fBafppasswd\fR(1) for details
64 .TP 
65 uams_dhx.so
66 (uams_dhx_pam.so or uams_dhx_passwd.so) Allow
67 Diffie\-Hellman eXchange (DHX) for authentication.
68 .TP 
69 uam_gss.so
70 Allow Kerberos V for authentication (optional)
71 .RE
72 .TP 
73 \-uampath \fI[path]\fR
74 Sets the default path for UAMs for this server (default is
75 :ETCDIR:/uams).
76 .TP 
77 \-k5keytab \fI[path]\fR, \-k5service \fI[service]\fR, \-k5realm \fI[realm]\fR
78 These are required if the server supports the Kerberos 5
79 authentication UAM.
80 .SH "CODEPAGE OPTIONS"
81 With OS X Apple introduced the AFP3 protocol. One of the big changes
82 was, that AFP3 uses Unicode names encoded as UTF\-8 decomposed. Previous
83 AFP/OS versions used codepages like MacRoman, MacCentralEurope,
84 etc.
85 .PP
86 To be able to serve AFP3 and older clients at the same time,
87 afpd needs to be able to convert between UTF\-8 and Mac
88 codepages. Even OS X clients partly still rely on codepages. As there's no
89 way, afpd can detect the codepage a pre AFP3 client
90 uses, you have to specify it using the \fB\-maccodepage\fR
91 option. The default is MacRoman, which should be fine for most western
92 users.
93 .PP
94 As afpd needs to interact with unix operating
95 system as well, it need's to be able to convert from UTF\-8/MacCodepage to
96 the unix codepage. By default afpd uses the systems
97 LOCALE, or ASCII if your system doesn't support locales. You can set the
98 unix codepage using the \fB\-unixcodepage\fR option. If you're
99 using extended characters in the configuration files for
100 afpd, make sure your terminal matches the
101 \fB\-unixcodepage\fR.
102 .TP 
103 \-unixcodepage [CODEPAGE]
104 Specifies the servers unix codepage, e.g. "ISO\-8859\-15" or
105 "UTF8". This is used to convert strings to/from the systems locale,
106 e.g. for authenthication, server messages and volume names. Defaults
107 to LOCALE if your system supports it, otherwise ASCII will be
108 used.
109 .TP 
110 \-maccodepage [CODEPAGE]
111 Specifies the mac clients codepage, e.g. "MAC_ROMAN". This is
112 used to convert strings and filenames to the clients codepage for
113 OS9 and Classic, i.e. for authentication and AFP messages (SIGUSR2
114 messaging). This will also be the default for the volumes
115 maccharset. Defaults to MAC_ROMAN.
116 .SH "PASSWORD OPTIONS"
117 .TP 
118 \-loginmaxfail [number]
119 Sets the maximum number of failed logins, if supported by the
120 UAM (currently none)
121 .TP 
122 \-passwdfile [path]
123 Sets the path to the Randnum UAM passwd file for this server
124 (default is :ETCDIR:/afppasswd).
125 .TP 
126 \-passwdminlen [number]
127 Sets the minimum password length, if supported by the
128 UAM
129 .TP 
130 \-[no]savepassword
131 Enables or disables the ability of clients to save passwords
132 locally
133 .TP 
134 \-[no]setpassword
135 Enables or disables the ability of clients to change their
136 passwords via chooser or the "connect to server" dialog
137 .SH "TRANSPORT PROTOCOLS"
138 .TP 
139 \-[no]ddp
140 Enables or disables AFP\-over\-Appletalk. If
141 \fB\-proxy\fR is specified, you must instead use
142 \fB\-uamlist ""\fR to prevent DDP connections from
143 working.
144 .TP 
145 \-[no]tcp
146 Enables or disables AFP\-over\-TCP
147 .TP 
148 \-transall
149 Make both available (default)
150 .SH "TRANSPORT OPTIONS"
151 .TP 
152 \-advertise_ssh
153 Allows Mac OS X clients (10.3.3 or above) to automagically
154 establish a tunneled AFP connection through SSH. If this option is
155 set, the server's answers to client's FPGetSrvrInfo requests contain
156 an additional entry. It depends on both client's settings and a
157 correctly configured and running \fBsshd\fR(8) on the server to let things work.
158 .RS 
159 \fBNote\fR
160
161 Setting this option is not recommended since globally
162 encrypting AFP connections via SSH will increase the server's load
163 significantly. On the other hand, Apple's client side
164 implementation of this feature in MacOS X versions prior to 10.3.4
165 contained a security flaw.
166 .RE
167 .TP 
168 \-ddpaddr \fI[ddp address]\fR
169 Specifies the DDP address of the server. The default is to
170 auto\-assign an address (0.0). This is only useful if you are running
171 AppleTalk on more than one interface.
172 .TP 
173 \-fqdn \fI[name:port]\fR
174 Specifies a fully\-qualified domain name, with an optional
175 port. This is discarded if the server cannot resolve it. This option
176 is not honored by AppleShare clients <= 3.8.3. This option is
177 disabled by default. Use with caution as this will involve a second
178 name resolution step.
179 .TP 
180 \-ipaddr \fI[ip address]\fR
181 Specifies the IP address that the server should advertise (the
182 default is the first IP address of the system). This option also
183 allows to use one machine to advertise the AFP\-over\-TCP/IP settings
184 of another machine via NBP.
185 .TP 
186 \-port \fI[port number]\fR
187 Allows a different TCP port to be used for AFP\-over\-TCP. The
188 default is 548.
189 .TP 
190 \-proxy
191 Runs an AppleTalk proxy server for the specified AFP\-over\-TCP
192 server. If the address and port aren't given, then the first IP
193 address of the system and port 548 will be used. If you don't want
194 the proxy server to act as a DDP server as well, set \fB\-uamlist
195 ""\fR.
196 .TP 
197 \-server_quantum \fI[number]\fR
198 This specifoes the DSI server quantum. The minimum value is
199 303840 (0x4A2E0). The maximum value is 0xFFFFFFFFF. If you specify a
200 value that is out of range, the default value will be set (which is
201 the minimum). Do not change this value unless you're absolutely
202 sure, what you're doing
203 .TP 
204 \-noslp
205 Do not register this server using the Service Location
206 Protocol (if SLP support was compiled in). This is useful if you are
207 running multiple servers and want one to be hidden, perhaps because
208 it is advertised elsewhere, ie. by a SLP Directory Agent.
209 .SH "MISCELLANEOUS OPTIONS"
210 .TP 
211 \-admingroup \fI[group]\fR
212 Allows users of a certain group to be seen as the superuser
213 when they log in. This option is disabled by default.
214 .TP 
215 \-authprintdir \fI[path]\fR
216 Specifies the path to be used (per server) to store the files
217 required to do CAP\-style print authentication which papd will
218 examine to determine if a print job should be allowed. These files
219 are created at login and if they are to be properly removed, this
220 directory probably needs to be umode 1777.
221 .RS 
222 \fBNote\fR
223
224 \fB\-authprintdir\fR will only work for clients
225 connecting via DDP. Almost all modern Clients will use TCP.
226 .RE
227 .TP 
228 \-client_polling
229 With this switch enabled, afpd won't advertise that it is
230 capable of server notifications, so that connected clients poll the
231 server every 10 seconds to detect changes in opened server windows.
232 \fINote\fR: Depending on the number of simultaneously
233 connected clients and the network's speed, this can lead to a
234 significant higher load on your network!
235 .RS 
236 \fBNote\fR
237
238 Do not use this option any longer as Netatalk 2.0 correctly
239 supports server notifications, allowing connected clients to
240 update folder listings in case another client changed the
241 contents.
242 .RE
243 .TP 
244 \-cnidserver \fI[ipaddress:port]\fR
245 Specifies the IP address and port of a cnid_metad server,
246 required for CNID dbd backend. Defaults to localhost:4700.
247 .TP 
248 \-guestname \fI[name]\fR
249 Specifies the user that guests should use (default is
250 "nobody"). The name should be quoted.
251 .TP 
252 \-icon
253 Use the platform\-specific icon
254 .TP 
255 \-loginmesg \fI[message]\fR
256 Sets a message to be displayed when clients logon to the
257 server. The message should be in \fBunixcodepage\fR and
258 should be quoted. Extended characters are allowed.
259 .TP 
260 \-nodebug
261 Disables debugging.
262 .TP 
263 \-sleep \fI[number]\fR
264 AFP 3.x waits number hours before
265 disconnecting clients in sleep mode. Default is 10 hours.
266 .TP 
267 \-signature { user:<text> | host }
268 Specify a server signature. This option is useful while
269 running multiple independent instances of afpd on one machine (eg.
270 in clustered environments, to provide fault isolation etc.). "host"
271 signature type allows afpd generating signature automatically (based
272 on machine primary IP address). "user" signature type allows
273 administrator to set up a signature string manually. The maximum
274 length is 16 characters
275
276 \fBThree server definitions using 2 different server
277 signatures\fR
278
279 .nf
280 first \-signature user:USERS 
281 second \-signature user:USERS 
282 third \-signature user:ADMINS
283 .fi
284
285 First two servers will appear as one logical AFP service to
286 the clients \- if user logs in to first one and then connects to
287 second one, session will be automatically redirected to the first
288 one. But if client connects to first and then to third, will be
289 asked for password twice and will see resources of both servers.
290 Traditional method of signature generation causes two independent
291 afpd instances to have the same signature and thus cause clients to
292 be redirected automatically to server (s)he logged in first.
293 .SH "LOGGING OPTIONS"
294 .TP 
295 \-[un]setuplog "<logtype> <loglevel> [<filename>]"
296 Specify that the given loglevel should be applied to log
297 messages of the given logtype and that these messages should be
298 logged to the given file. If the filename is ommited the loglevel
299 applies to messages passed to syslog. Each logtype may have a
300 loglevel applied to syslog and a loglevel applied to a single file.
301 Latter \fB\-setuplog\fR settings will override earlier
302 ones of the same logtype (file or syslog).
303
304 logtypes: Default, Core, Logger, CNID, AFP
305
306 Daemon loglevels: LOG_SEVERE, LOG_ERROR, LOG_WARN, LOG_NOTE,
307 LOG_INFO, LOG_DEBUG, LOG_DEBUG6, LOG_DEBUG7, LOG_DEBUG8, LOG_DEBUG9,
308 LOG_MAXDEBUG
309
310 \fBSome ways to change afpd's logging behaviour via
311 \-[un]setuplog\fR
312
313 Example: 
314
315 .nf
316 \-setuplog "logger log_maxdebug /var/log/netatalk\-logger.log" 
317 \-setuplog "afpdaemon log_maxdebug /var/log/netatalk\-afp.log" 
318 \-unsetuplog "default level file" 
319 \-setuplog "default log_maxdebug"
320 .fi
321 .SH "DEBUG OPTIONS"
322 These options are useful for debugging only.
323 .TP 
324 \-tickleval \fI[number]\fR
325 Sets the tickle timeout interval (in seconds). Defaults to
326 30.
327 .TP 
328 \-timeout \fI[number]\fR
329 Specify the number of tickles to send before timing out a
330 connection. The default is 4, therefore a connection will timeout
331 after 2 minutes.
332 .SH EXAMPLES
333 \fBafpd.conf default configuration\fR
334 .PP
335 .nf
336 \- \-transall \-uamlist uams_clrtxt.so,uams_dhx.so,uams_guest.so
337 .fi
338 .PP
339 \fBafpd.conf MacCyrillic setup / UTF8 unix locale\fR
340 .PP
341 .nf
342 \- \-transall \-maccodepage mac_cyrillic \-unixcodepage utf8
343 .fi
344 .PP
345 \fBafpd.conf setup for Kerberos V auth\fR
346 .PP
347 .nf
348 \- \-transall \-uamlist uams_clrtxt.so,uams_dhx.so,uams_guest.so,uams_gss.so \\ 
349 \-k5service afpserver \-k5keytab /path/to/afpserver.keytab \\ 
350 \-k5realm YOUR.REALM \-fqdn your.fqdn.namel:548
351 .fi
352 .PP
353 \fBafpd.conf letting afpd appear as three servers on the net\fR
354 .PP
355 .nf
356 "Guest Server" \-uamlist uams_guest.so \-loginmesg "Welcome guest!"
357 "User Server" \-uamlist uams_dhx.so \-port 12000
358 "special" \-notcp \-defaultvol <path> \-systemvol <path>
359 .fi
360 .SH "SEE ALSO"
361 \fBafpd\fR(8), \fBafppasswd\fR(1), \fBAppleVolumes.default\fR(5)
362