]> arthur.barton.de Git - netatalk.git/blob - doc/FAQ
Add a README.cnid which talks about what CNID is, and what it means to
[netatalk.git] / doc / FAQ
1 Netatalk Frequently Asked Questions
2 ($Id: FAQ,v 1.11 2003-01-04 22:14:03 jmarcus Exp $)
3
4 -----------------------------------------------------------------------------
5
6 Q1: Where can I get more information on Netatalk?
7 Q2: What is this I keep seeing about asun?
8 Q3: How do I get the most recent version of Netatalk?
9 Q4: Can I get an almost current version of Netatalk without having to learn CVS?
10 Q4a: Is there an RPM, package, or tarball for my platform?
11 Q5: I'm having massive file deletion problems!
12 Q6: I am having lots of file locking problems!
13 Q7: I'm getting this message in my logs:
14      WARNING: DID conflict for ...  Are these the same file?
15 Q8: I can't seem to use passwords longer than 8 characters for my netatalk
16     accounts. How can I fix that? 
17 Q9: I would like to use encrypted passwords to authenticate to the Netatalk
18     server. How do I do that?
19 Q10: How can I set who has access to certain directories?
20 Q11: What are the .AppleDouble and .Parent directories which are created in
21      the netatalk locations?
22 Q12: Hidden files - what's up with that?
23 Q13: I get a "socket: Invalid argument" error when trying to start netatalk
24      under Linux. What is causing this?
25 Q14: Netatalk works over Appletalk, but my IP connections are refused, even
26      though I have enabled them in the configuration files.
27 Q15: I'm having Quark Express file locking problems, is there information on that?
28 Q16: I'm getting this error in Quark Express when trying to save a file to
29      the server: 'Error Type -50'
30 Q17: Does netatalk work with Mac OSX?
31 Q18: I'm getting an 'Application for this document not found' error on OS X.
32 Q19: I'm getting an 'Error Type -43' error on OS X.
33 Q20: How do I get the directories that are created by Netatalk to have the
34      correct permissions by default?
35 Q21:  What does this error mean:
36      'afpd[#####]: setdirmode: chmod .AppleDouble Operation not permitted'
37 Q22: I'm having problems with the Trash folder: either when someone drags
38      files into it, the system want's them todelete them immeidately, or files
39      get stuck in there and won't delete.
40 Q23: The daemons aren't starting, things aren't showing up in the Chooser,
41      and I get a message like this in the logs: afpd[####]: Can't register
42      Tests:AFPServer@*
43 Q24: I want to be able to allow users to change their passwords?  How do
44      I enable this feature.  Every time I try I get an error that it was
45      unable to save the password.
46 Q25: Can a mount a Mac volume on my unix machine?
47 Q26: Can I run Samba and Netatalk together to access the same files?
48 Q27: Files I create on my Samba shares are invisible on the mac side.
49 Q27a: How can I set netatalk to hide some files from the Samba (or
50      unix) sides?
51 Q28: Files I create on my netatalk shares are invisible on the PC side.
52 Q28a: How can I set Samba to hide the netatalk specific files (e.g.
53      .AppleDouble).
54 Q29: I compiled Samba with the --with-netatalk flag. What did that do?
55 Q30: What about the differences in naming schemes, and legal/illegal
56      characters between Windows, Macs (and unix?)
57 Q31: Where can I get the cnid-db (Berkely DB) software? (needed for
58      --with-did=cnid)
59 Q32: What about security in Netatalk?
60
61
62
63 -----------------------------------------------------------------------------
64
65
66 Q1: Where can I get more information on Netatalk?
67
68 A:  The current location of the actively developed netatalk project can be
69     found on SourceForge, at: http:/www.sourceforge.net/projects/netatalk.
70
71     There are (at least) two very active e-mail lists to which you can
72     subscribe, the first, netatalk-admins, is for usage and basic
73     setup/compile questions. It is NOT maintained at sourceforge, but rather
74     at the University of Michigan, which was involved with a good deal of the
75     early development.  
76     
77     Subscribe by sending an e-mail to netatalk-admins-request@umich.edu with a
78     subject of "subscribe" and a blank body. This can be very high volume, but
79     usually a few messages a day.
80     
81     The archive is available at:  
82     ftp://terminator.rs.itd.umich.edu/unix/netatalk/ and is called
83     netatalk-admins.mail.  This is a ~6M mbox file. Archives from
84     previous years are available there as well.
85     
86     Netatalk-devel list is more specific to coding and testing. It can be
87     browsed at: http://www.geocrawler.com/redir-sf.php3?list=netatalk-devel,
88     and subscribed to at:  
89     http://lists.sourceforge.net/lists/listinfo/netatalk-devel This varies in
90     volume, but is usually moderately active.
91     
92     Netatalk-docs is specific to documentation. It can be browsed at:
93     http://www.geocrawler.com/redir-sf.php3?list=netatalk-docs
94     and subscribed to at:
95     http://lists.sourceforge.net/lists/listinfo/netatalk-docs
96     This list is being revived.
97     
98     There are other netatalk information sites. Some of these are no
99     longer actively updated, some are site-specific, but still have
100     good information:
101     http://www.umich.edu/~rsug/netatalk/index.html
102     http://www.anders.com/projects/netatalk/ and many unices have their own
103     sites and distributions (tarballs, rpm's, packages, etc.)
104     http://www.faredge.com.au/netatalk/index.html
105     
106 Q2: What is this I keep seeing about asun?
107
108 A:  Before netatalk moved to SourceForge, Adrian Sun (asun) had written
109     some patches to netatalk which helped significantly with it's usability,
110     especially using appleshareIP. These patches are still provided by many
111     unix vendors. I believe all of these patches are included in the current
112     Sourceforge versions.
113
114
115 Q3: How do I get the most recent version of Netatalk?
116
117 A:  Via CVS from Sourceforge.net. This is the actively maintained version
118     of netatalk, changes are being made constantly, and therefore it is not
119     suitable for production environments. The netatalk at Sourceforge is in
120     Beta, so keep that in mind.
121     
122     To create the CVS tree - from the directory you want to use as your CVS
123     root, run:
124
125     % cvs -d:pserver:anonymous@cvs.netatalk.sourceforge.net:/cvsroot/netatalk login
126
127     hit <enter> at the Password: prompt
128
129     % cvs -z3
130     -d:pserver:anonymous@cvs.netatalk.sourceforge.net:/cvsroot/netatalk co
131     netatalk
132
133     This will create a netatalk subdirectory, and check out all of the files.
134     If you run this same command subsequently, you will update any files which
135     have changed (on the CVS server) since your last checkout.
136     
137     Once you've done that, read the INSTALL file in the netatalk/ directory,
138     plus the CONFIGURE file. If you're installing from CVS, you'll most likely
139     need have some supplementary software installed, such as gmake. Some
140     systems work fine with make. Additional information can be found in docs/.
141     
142     The main things to know, though, are this: you must run
143     
144     % ./autogen.sh 
145     in the netatalk/ directory first, in order to create your configure file. 
146     
147     Then run 
148     % ./configure --help | more in order to get a feel for which compile 
149     flags are available. Some of these flags are summarized below, some are 
150     summarized in the INSTALL file, and some have individual README. files.
151     
152     To learn more about CVS, a good place to start is: http://www.cvshome.org,
153     or http://www.cvshome.org/docs/manual, or
154     http://www.cvshome.org/form/form.cgi (this is the FAQ).
155
156     There are GUI cvs systems for Windows and Macs. Search on SourceForge for
157     WinCVS or MacCVS.
158
159
160 Q4: Can I get an almost current version of Netatalk without having to learn CVS?
161
162 A:  Yes.  Weekly (or thereabouts) snapshots of the CVS tree should be
163     posted for the benefit of those that don't want to / can't use CVS. As of
164     10/3/01, these were being put up at:
165     
166     ftp://ftp.marcuscom.com/pub/netatalk/nightly
167     
168     From the mail archives:
169     I have started an archive of nightly CVS snap shots that build a tar.gz of
170     netatalk ready to configure and build.  The images can be downloaded from:
171     
172     ftp://ftp.marcuscom.com/pub/netatalk/nightly
173     This site only allows active FTP, so the snaps are also available at:
174     http://www.marcuscom.com/netatalk/nightly
175     
176     You should be able to treat these images as you would a release.  Just
177     configure as you normally work, then run make (or gmake as the case may
178     be).  There is no need to run autogen.sh on these images.
179
180
181 Q4a: Is there an RPM, package, or tarball for my platform?
182
183 A:  Perhaps. These vary in how often they're updated:
184
185     FreeBSD - port: /usr/ports/net/netatalk - maintained by Joe Clark
186     SUSE - ftp://ftp.suse.com/pub/suse/i386/7.2/suse/n2/netatalk.rpm
187     OpenBSD - port: /usr/ports/net/netatalk/ 
188     (not actively maintained, as far as I can tell, and it's pretty old.)
189     Debian - http://non-us.debian.org/debian-non-us/pool/non-US/main/n/netatalk/
190     (This is the debian site which includes code which should not be 
191     exported from the US. It may be legally forbidden to export the
192     software in non-us from the U.S., but since non-us.debian.org is located
193     in the Netherlands [and the maintainer of this package is in Germany], 
194     there shouldn't be any problems for anybody downloading and using this. 
195     Also, all this doesn't apply to netatalk, since the Debian version isn't
196     linked against OpenSSL anymore.)
197
198     Redhat - RPMs of various types:
199     ftp://ftp.vircio.com/pub/netatalk/netatalk-1.5pre8-1.i386.rpm
200     ftp://ftp.vircio.com/pub/netatalk/netatalk-devel-1.5pre8-1.i386.rpm
201     ftp://ftp.vircio.com/pub/netatalk/netatalk-1.5pre8-1.src.rpm
202
203
204 Q5: I'm having massive file deletion problems!
205 Q6: I am having lots of file locking problems!
206 Q7: I'm getting this message in my logs:
207     WARNING: DID conflict for ...  Are these the same file?
208
209 A:  Compile with the --with-did=last flag set. This activates a different
210     method of calculating inodes in the software, and will hopefully fix some
211     of these problems. This code, along with the CNID code, was still being
212     worked out in Pre7. The cnid/bdb flags also go along with this:
213       --with-bdb=PATH         specify path to Berkeley DB installation
214       --with-did=[scheme]     set DID scheme (cnid,last) 
215     
216     (For more information on CNID, see the README.cnid file.)
217     
218     --with-did=last reverted things back to the old 1.4b2 directory ID
219     calculation algorithm.  This also solved the problem of the syslog
220     messages and the users complaining of file deletions.  It's also been
221     found that by disabling *BSD's SOFTUPDATES feature on Netatalk volumes (on
222     FreeBSD), multi-user interaction seemed to work better.  This was back in
223     a late 4.2-BETA, so it's not clear if this still holds true in 4.4-RELEASE
224     or not.
225
226
227 Q8: I can't seem to use passwords longer than 8 characters for my netatalk
228     accounts. How can I fix that? 
229
230 Q9: I would like to use encrypted passwords to authenticate to the Netatalk
231     server. How do I do that?
232
233 A:  Update to a newer version of AppleShare Client (I think the most
234     recent is 3.8.8). This allows longer passwords, and will allow you to
235     use encrypted passwords. Set which way you would like to authenticate
236     in either afpd.conf or netatalk.conf, depending on your set up.
237
238     For more information on the appleshare client from apple, and which clients
239     are needed for which MacOS, see 
240     http://til.info.apple.com/techinfo.nsf/artnum/n60792?OpenDocument&software
241     (this site requires cookies, and a registration and sign-in).
242
243
244 Q10: How can I set who has access to certain directories?
245     
246 A:  You can certainly do this with your unix permissions, but also explore the 
247     allow/deny/rwlist/rolist options in the AppleVolumes.default file:
248     
249     # allow/deny/rwlist/rolist format [syntax: allow:user1,@group]:
250     # user1,@group,user2  -> allows/denies access from listed users/groups
251     #                        rwlist/rolist control whether or not the
252     #                        volume is ro for those users.
253     
254     Also, some unices, specically FreeBSD, have other options:
255     (By Joe Clark)
256     
257     "What about file and directory permissions?  Since I didn't use the FORCE
258     UID/GID code, I decided to use a feature of FreeBSD called SUIDDIR. From
259     the LINT kernel config file:
260     
261     # If you are running a machine just as a fileserver for PC and MAC
262     # users, using SAMBA or Netatalk, you may consider setting this option
263     # and keeping all those users' directories on a filesystem that is
264     # mounted with the suiddir option. This gives new files the same
265     # ownership as the directory (similar to group). It's a security hole
266     # if you let these users run programs, so confine it to file-servers
267     # (but it'll save you lots of headaches in those cases). Root owned
268     # directories are exempt and X bits are cleared. The suid bit must be
269     # set on the directory as well; see chmod(1) PC owners can't see/set
270     # ownerships so they keep getting their toes trodden on. This saves
271     # you all the support calls as the filesystem it's used on will act as
272     # they expect: "It's my dir so it must be my file".
273     
274      FORCE UID/GID code, I decided to use a feature of FreeBSD called
275      SUIDDIR.  From the LINT kernel config file:
276     
277     # If you are running a machine just as a fileserver for PC and MAC
278     # users, using SAMBA or Netatalk, you may consider setting this option
279     # and keeping all those users' directories on a filesystem that is
280     # mounted with the suiddir option. This gives new files the same
281     # ownership as the directory (similar to group). It's a security hole
282     # if you let these users run programs, so confine it to file-servers
283     # (but it'll save you lots of headaches in those cases). Root owned
284     # directories are exempt and X bits are cleared. The suid bit must be
285     # set on the directory as well; see chmod(1) PC owners can't see/set
286     # ownerships so they keep getting their toes trodden on. This saves
287     # you all the support calls as the filesystem it's used on will act as
288     # they expect: "It's my dir so it must be my file".
289     
290     And the associated mount command:
291     
292     mount -o suiddir /dev/da2s1e /macvol/artfiles
293     
294     This was used on my dedicated Netatalk/Samba filesystems.  On
295     filesystems that were also used for interactive shell access, I chmod'd
296     my Netatalk shares 2770.  The reason for this is that I set up a UNIX
297     group for each department in the ad agency.  I had an art group, a media
298     group, an accounting group, and then, or course, a general staff group.
299     Each share was only allowed access by the group that needed to access
300     the share.  So, the Artfiles share allowed access only to the art group:
301     
302     /macvol/artfiles "Art Files" allow:@art
303     
304     And the others followed in kind.  Therefore, the 2770 mask allowed only
305     owners and people in the associated group access to read and write
306     files.  The leading 2 set the setgid bit so that all child files and
307     directories would retain the same group permissions.  I found this to
308     work well.
309     
310     This was used on my dedicated Netatalk/Samba filesystems.  On
311     filesystems that were also used for interactive shell access, I chmod'd
312     my Netatalk shares 2770.  The reason for this is that I set up a UNIX
313     group for each department in the ad agency.  I had an art group, a media
314     group, an accounting group, and then, or course, a general staff group.
315     Each share was only allowed access by the group that needed to access
316     the share.  So, the Artfiles share allowed access only to the art group:
317     
318     /macvol/artfiles "Art Files" allow:@art
319     
320     And the others followed in kind.  Therefore, the 2770 mask allowed only
321     owners and people in the associated group access to read and write
322     files.  The leading 2 set the setgid bit so that all child files and
323     directories would retain the same group permissions.  I found this to
324     work well."
325
326
327 Q11: What are the .AppleDouble and .Parent directories which are created in
328      the netatalk locations?
329
330 A:  See the README.veto file in this directory.
331     
332     The .AppleDouble folders hold the resource fork information for the mac
333     files, plus other attributes which are not normally stored by Unix. For
334     this reason, when you want to move files around in your mac volumes, it's
335     a good idea to do it from the Mac side (as opposed to from the unix side,
336     or Samba), unless you make absolutely sure you get the .AppleDouble
337     directories. These directories are often hidden from the Samba side, via
338     the veto files configuration.
339     
340     You can also set netatalk to not create an .AppleDouble directory unless
341     it absolutely needs it, by setting the noadouble setting in
342     AppleVolumes.default.
343     
344     
345 Q12: Hidden files - what's up with that?
346     
347 A:  If you set the noadouble flag in AppleVolumes.default, you won't see
348     the .Apple* or .Parent directories on the Mac side. If you use the veto
349     files option in Samba, they may be hidden from the windows side as well.
350     (More information in the Samba section, and in the README.veto file in
351     this directory.)
352
353
354 Q13: I get a "socket: Invalid argument" error when trying to start netatalk
355      under Linux. What is causing this?
356
357 A:  The "appletalk" and "ipddp" kernel modules have to be installed under
358     linux for netatalk to function. The appletalk module can be automatically
359     loaded by adding the line "alias net-pf-5 appletalk" to the
360     /etc/modules.conf file. Issuing the command "modprobe (module)" will
361     load the module for the current session.
362
363
364 Q14: netatalk works over Appletalk, but my IP connections are refused, even
365      though I have enabled them in the configuration files.
366
367 A:  If tcp_wrappers support is compiled into netatalk, access has to be
368     granted in /etc/hosts.allow for netatalk to successfully accept IP
369     connections. This can be done by the addition of the line:
370     afpd:  127. xxx.xxx.xxx. (whatever other subnets)    
371     
372
373 Q15: I'm having Quark Express file locking problems, is there information on that?
374
375 A:  Yes, see the question regarding DID conflicts and the --enable-did= flag. 
376     Also, try using the --flock-locks flag. Enabling this code disabled the 
377     new byte locking feature. With FLOCK locks, the whole file would be locked. 
378     With byte locks, a byte range could be locked without locking the whole
379     file.
380
381
382 Q16: I'm getting this error in Quark Express when trying to save a file to
383      the server: 'Error Type -50'
384
385 A:  Turn off the document preview feature off in Quark.
386
387
388 Q17: Does netatalk work with Mac OSX?
389
390 A:  Yes, but only the most recent versions, and it's still being finalized.
391     Versions prior to 1.5Pre7 did NOT work with OS X, although some really
392     early versions did (netatalk 1.4+asun?).
393
394
395 Q18: I'm getting an 'Application for this document not found' error on OS X.
396
397 Q19: I'm getting an 'Error Type -43' error on OS X.
398
399 A:  Configure with --with-did=last. More info on this flag is given in the 
400     DID conflicts question.
401
402
403 Q20: How do I get the directories that are created by Netatalk to have the
404      correct permissions by default?
405
406 A:  Investigate the SetGid bit on your unix platform. It's a good idea to
407     set this on your shared directories, and your .AppleDouble directories.
408     From the mail archives: "Usually directories designated for use with
409     AppleShare have the setgid (g+s) bit set.  It forces inheritance of
410     permissions.  Without it, the .AppleDouble subdirectory can't be created
411     since the new folder doesn't necessarily have the same write privileges."
412     
413     Information about the setgid bit can be found in Evi Nemeth's 
414     "Unix System Administration Handbook" (3rd. ed, chap 5.5, pg. 69):
415     
416     "The bits with octal values 4000 and 2000 are the setuid and setgid bits.
417     These bits allow programs to access files and processes that would
418     otherwise be off-limits to the users that run them. [...] When set on a
419     directory, the setgid bit causes newly created files within the directory
420     to take on the group membership of the directory rather than the defualt
421     group of the user that created the file. This convention makes it easier
422     to share a directory of files among several users, as long as they all
423     belong to a common group. Check your system before relying on this
424     feature, since not all version of UNIX provide it. [...] This interpretation
425     of the setgid bit is unrelated to it's meaning when set on an executable
426     file, but there is never any ambiguity as to which meaning is
427     appropriate."
428     
429     NOTE: The SETUID is usually discussed along with the SetGID bit. The
430     SetUID bit is VERY dangerous. If you set it on an executable, and the
431     executable is owned by root, anyone who runs that executable is root for
432     the duration of that executable's run, so a clever person can leverage
433     that into a full-scale compromise. The SETGID bit also has other security
434     implications, so be careful where you set it.
435     
436     You set it by doing a chmod 2777 or 2775, or whatever. It's that first 2 bit.
437     
438
439 Q21:  What does this error mean:
440      'afpd[#####]: setdirmode: chmod .AppleDouble Operation not permitted'
441
442 A:  This can be due to a few things.
443
444     1) The SetGid bit might not be set on either your directory, or on the
445     .AppleDouble directory. I think the bit has to be set recursively on the
446     .AppleDouble folder.
447     
448     2) You may not be member of the group set on the directory you're trying
449     to write to.
450     
451     3) This was a persistant bug in 1.5pre6 for awhile, upgrading might help.
452     
453     
454 Q22: I'm having problems with the Trash folder: either when someone drags
455      files into it, the system wants them to delete them immediately, or files
456      get stuck in there and won't delete.
457     
458 A:  Chmod the Network Trash folder to 2775 (/home/public/Network Trash
459     Folder for instance).
460
461     As of 10/16/01, Mac OS X trash didn't work properly with afps volumes. 
462     Apple is working on it.
463
464 Q23: The daemons aren't starting, things aren't showing up in the Chooser,
465      and I get a message like this in the logs: afpd[####]: Can't register
466      Tests:AFPServer@*
467
468     This is sometimes a result of missing NIC information in the atalkd.conf
469     file. Put your network interface (something like le0, eth0, fxp0, lo0)
470     alone on a line in atalkd.conf, and reboot. When atalkd starts, it will
471     populate the file with a line such as: 
472     le1 -seed -phase 2 -addr 66.6 -net 66-67 -zone "No Parking"
473
474     To find your network interface, run
475
476     % ifconfig -a | more
477     and see which interface has your IP address. Use that one.
478
479 Q24: I want to be able to allow users to change their passwords.  How do
480      I enable this feature?  Every time I try I get an error that it was
481      unable to save the password.
482
483 A:  Use  -[no]setpassword in afpd.conf. This  enables? disables  the
484     ability of clients to change their passwords.
485
486
487 Q25: Can a mount a Mac volume on my unix machine?
488
489 A:  Well, maybe. OS X obviously might be able to do this with NFS. 
490     Also, there is a program called afpfs which was designed to do this, 
491     but is not actively maintained and has been reportedly highly unstable. 
492     It should be available from: http://www.panix.com/~dfoster/afpfs/
493
494 Q26: Can I run Samba and Netatalk together to access the same files?
495
496 A:  Sure. Lots of us do. But there are some concerns. Quite often it's 
497     useful, for instance, to hide files of one OS from the other. See
498     the AppleVolumes.default file in Netatalk, and investigate the veto
499     files option in Samba. (See the README.veto file.)
500
501     Also, when copying and moving files created on the Mac, it's better
502     to do that from the Mac, rather than from the Unix server or from
503     Samba. This is because the .AppleDouble folders hold the resource fork 
504     information for the mac files, plus other attributes which are not 
505     normally stored by Unix.
506     
507     You can also set netatalk to not create an .AppleDouble directory unless
508     it absolutely needs it, by setting the noadouble setting in
509     AppleVolumes.default.
510
511
512 Q27: Files I create on my Samba shares are invisible on the mac side.
513
514 A:   Have you checked the AppleVolumes(.default? .sytem? I don't remember
515      which one hides files!) file?
516
517      How long are the file names? Names longer than 31 BYTES (not characters) 
518      are not visible on the Mac side. This is because some old Mac OS's don't 
519      accept long names, and some finders crash when they encounter them. 
520      Therefore netatalk hides long filenames to prevent crashes.
521      There is talk of creating a method to truncate the names, but this
522      code has not yet been written.
523
524      The BYTES distiction is made because there exist doublebyte fonts too, 
525      which limit names to 15 chars.
526
527
528 Q27a: How can I set netatalk to hide some files created on the Samba 
529      (or unix) sides?
530
531 A:   AppleVolumes(.system or .default?) allows you to hide certain files.
532      This might be a good thing to set on, say, .cshrc, ssh keys, and
533      the like.
534
535
536 Q28: Files I create on my netatalk shares are invisible on the PC side.
537 Q28a: How can I set Samba to hide the netatalk specific files (e.g.
538      .AppleDouble).
539
540 A:   Check your Samba veto files option in smb.conf. It's often useful
541      to hide files like .AppleDouble or the network trash folder here.
542
543      Does the mac file have a \ or / in it? Would this cause Samba to 
544      not see the file?
545
546 Q29: I compiled Samba with the --with-netatalk flag. What did that do?
547
548 A:   Nothing. Some code was written (by a Samba developer?), but as of 
549      Fall 2001, Samba doesn't utilize it.
550
551 Q30: What about the differences in naming schemes, and legal/illegal
552      characters between Windows, Macs (and unix?)
553
554 A:   Check out the documentation about the 'mswindows' flag in afpd.conf (?).
555      For instance, having / or \ or : in a name is especially bad, 
556      as they're path seperators on unix and windows and macs, 
557      respectively). Educating the end user is important for this problem.
558
559
560 Q31: Where can I get the cnid-db (Berkely DB) software? (needed for
561      --with-did=cnid)
562
563 A:   First check to see if your unix has a port or package. If not, 
564      http://www.sleepycat.com/download.html
565
566 Q32: What about security in Netatalk?
567
568 A:   Most of the security for netatalk must be derived from the
569      security of the unix server on which it runs. Directory permissions,
570      valid users, firewalls, IP filters, file integrity checkers, etc.
571      are all part of the equation. That said, it is possible to configure
572      netatalk to minimize access, and close potential security holes.
573
574      These two flags are especially important:
575
576 --with-tcp-wrappers: enable TCP wrappers support.
577         Wietse Venema's network logger, also known as TCPD or
578         LOG_TCP. These programs log the client host name of incoming
579         telnet, ftp, rsh, rlogin, finger etc. requests. Security
580         options are: access control per host, domain and/or service;
581         detection of host name spoofing or host address spoofing;
582         booby traps to implement an early-warning system.  TCP
583         Wrappers can be gotten at
584         ftp://ftp.porcupine.org/pub/security/
585
586      Note, if you use tcp-wrappers, it would be a good idea to set your
587      afpd.conf file to disable DDP, or accept connections only on TCP.
588      You can also configure afpd to only run on a certain port, which
589      you can then let through your IPFilter.
590      
591      Encrypt your passwords with SSL!
592
593 --with-ssl-dirs=[PATH]: specify path to OpenSSL installation. 
594         NOTE: This is dependent on the same directory layout as the
595         source distribution of Openssl. That is: ./include/ and
596         ./lib/ to be on the same level. Many .rpm formats do not
597         have their files laid out in this format.
598         The OpenSSL Project is a collaborative effort to develop a
599         robust, commercial-grade, full-featured, and Open Source
600         toolkit implementing the Secure Sockets Layer (SSL v2/v3)
601         and Transport Layer Security (TLS v1) protocols as well as a
602         full-strength general purpose cryptography library.
603         This is required to enable DHX login support, which
604       will encrypt all of the passwords being sent across the 
605       connection. (Some old mac clients don't support this, check
606       this FAQ for the section on AppleShare clients.)
607       Check to see if your unix has OpenSSL already, or
608         get everything at http://www.openssl.org/ 
609
610     Be aware that on the volumes that are shared, some of the 
611     special folders (.AppleDesktop, "Network Trash Folder") get
612     assigned. A lot of these get created as world-writable (because that's
613     what the Mac clients are expecting them to be) which is often quite
614     undesirable from the unix sysadmin's point of view. Documenting this
615     behavior could be a somewhat daunting task, but highly desirable.
616
617     Shares can be set to be read/write only by certain people and groups.
618     (need more documentation here!)
619
620     The netatalk code has not been through a major code audit. However,
621     it's open source, so if you want to do said audit, contact the 
622     netatalk maintainers (which can be done through the sourceforge site).
623
624     Has anyone tried to run netatalk in a chroot jail? If so, please
625     share your experiences with the mailing lists.
626