LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-27-2003, 01:56 PM   #1
lukebeales
Member
 
Registered: Oct 2003
Location: Australia
Distribution: Slackware/LFS/Ubuntu
Posts: 89

Rep: Reputation: 15
netatalk shares always show up empty


howdy all. i'm running the latest netatalk, and exporting some shares with the usual options (have tried all of them...really!). these same shares are exported with both nfs and samba at the same time and they work perfectly. but when i look at the share over appletalk, no files show up even though there are many in there. permissions are all correct by the way.

i have toyed with it for a few days and it seems as though the .AppleDB folder has something to do with it, which if it doesn't exist then i can connect and browse my apparently empty directories, but if it creates the .AppleDB then it won't even let me connect to any of them. What's more, that .AppleDB directory is always empty.

Is there an easy fix that i am missing? Should the .AppleDB folder be empty? Any help would be appreciated as this problem has been getting on my nerves for the past couple of days. Thanks in advance.
 
Old 12-30-2003, 03:08 PM   #2
sidmark-2850
Member
 
Registered: Aug 2003
Posts: 133

Rep: Reputation: 15
Did you look at the file README.hidden-items. Your shared folder must contain the appropriate directories otherwise they won't show up properly. Create a separate unix user for netatalk, and create those directories and chown them to the netatalk user. Log into netatalk from the mac and open up the share. Make sure that the .AppleDesktop .AppleDouble and .AppleDB folders and files in them are world writable. Chmod the files to 666 and folders to 777. You must create the .AppleDesktop directory if you copy executable files to that share, otherwise you get Error 50.

Hope this helps.
 
Old 12-30-2003, 11:29 PM   #3
lukebeales
Member
 
Registered: Oct 2003
Location: Australia
Distribution: Slackware/LFS/Ubuntu
Posts: 89

Original Poster
Rep: Reputation: 15
I found the solution just under an hour ago! The berkeley db library wasn't compiled with the necessary tags, and then when it was - I was linking against an old one by accident. The debug and message logs don't give any mention that the library is wrong - just a warning to others! But now it works perfectly - without the .AppleDouble and such files. All it needs apparently is the .AppleDB stored somewhere read-write. I had found that page you mentioned a few days ago and it did help - thanks for the reply anyway as it will help anyone who has the same problem. Make sure your berkeley db is compiled properly people! Have a happy new year!
 
Old 01-09-2004, 02:36 PM   #4
artur
Member
 
Registered: Apr 2002
Location: Illinois, US
Distribution: Red Hat, Fedora, Yellow Dog, Debian, FreeBSD, Embedix
Posts: 106

Rep: Reputation: 15
same problem here

I'm having the same problem with my netatalk 1.6.4 and RH9 box with it's distro-included db4-4.0.14-20. Can you give some more detail about your solution? What exactly did you have to do with BDB? Uninstall and compile new RPM or compile from source? What options did you have to use for compile to get the right tags?

I recompiled my netatalk with options to give some debugging log messages and it seems that it fails when it tries to create database files after making .AppleDB directory, even with 2777 permissions.

Please also see my post about problems with Panther accessing netatalk shares. Have you seen that happen?

Artur
 
Old 01-09-2004, 11:33 PM   #5
lukebeales
Member
 
Registered: Oct 2003
Location: Australia
Distribution: Slackware/LFS/Ubuntu
Posts: 89

Original Poster
Rep: Reputation: 15
I'm not sure that I can help you with the problem as it sounds like you're doing everything right already but i'll tell you exactly what I have got running right now since it works for me.

This is all compiled from source on a slackware 9.1 machine, but the resulting programs are run on a separate custom distribution afterwards anyway so that doesn't really matter.

my db is compiled from source. it's filename/version is db-4.1.25.tar.gz.
netatalk is also compiled from source, filename netatalk-1.6.4.tar.bz2.

the configuration and make tags are as follows:


tar -zxf db*.tar.gz
cd db*/build_unix
../dist/configure --prefix=/usr --enable-diagnostic --enable-rpc --enable-compat185 --enable-cxx
make
make install


tar -jxf netatalk*.tar.bz2
cd netatalk*
./configure --with-shadow --with-did=cnid --prefix=/usr --sysconfdir=/etc --with-ssl-dir=/usr --with-bdb=/usr --enable-timelord --disable-shell-check --enable-fhs --with-cdb --with-mangling
make
make install"


...then i basically keep all the default afpd.conf and such, just add some shares to a blank AppleVolumes.default...for eg:


/mnt/hd "hard drive" allow:nobody rwlist:nobody options:crlf,noadouble,mswindows,nodots,usehex dbpath:/tmp


...all on the same line of course otherwise it will complain. then i run the 4 daemons:


atalkd
nbprgstr -p 4 machine_hostname:Workstation
nbprgstr -p 4 machine_hostname:netatalk
papd
afpd -u -n machine_hostname -U uams_guest.so -g nobody -c 5
timelord


...substituting machine_hostname with the hostname of the machine.

...generally that's all you need to do. wherever you set dbpath should be rw to whatever the user netatalk is running as, and it will create the /tmp/.AppleDB folder for you with about 5 or 6 weird named files in it such as __db.001, __db.002, __db.003, cnid.db, devino.db, didname.db, mangle.db.

That's all I have done and I have managed to get basillisk (windows mac 8.1 emulator) and an imac running macos 9.2.2 to connect to it, haven't tried macosX as I forgot to bring that home for the holidays! ...so i haven't experienced the rearranging files problem yet - sorry! i hope some of this helps anyway. enjoy!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Smbclient limited to show shares? Thakowbbery Linux - Networking 0 05-18-2005 09:48 AM
Gentoo VNC, empty dialog box !! "Question" window is empty ! TheHushedCaskeT Linux - Software 0 02-01-2005 11:14 PM
Samba Directory shares show up as printers on Win2K Boxes mjrdzine Linux - Software 5 12-02-2003 10:55 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 06:28 PM
Redhat Linux 6.2 Email Delivered to Server but POP3 and IMAP Mailboxes show empty. RCorbet Linux - Software 0 04-14-2003 10:26 AM


All times are GMT -5. The time now is 01:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration