Page 2 of 2

Re: File sharing with OSX

Posted: Mon Jan 20, 2014 2:06 pm
by Jo.esp
Hi,

Thanks for the good tutorial. However, I'm having some trouble getting writing permission. I added rw at the end of the :DEFAULT line (i.e. :DEAFAULT: options:upriv,usedots,rw) but still don't have writing permission from my Mac when connecting to the AFP server. I've also tried rwlist but with no luck.

Am I missing something here?
Thanks a lot

Re: File sharing with OSX

Posted: Fri Mar 07, 2014 5:01 pm
by lucas72
same as above! all works except for the fact there's no write permission in any folder, including the home of the logged user.
actually I dont understand where the "rw" option comes from since its not documented at all.... :evil:

Re: File sharing with OSX

Posted: Thu Mar 20, 2014 9:44 am
by Berend
I had the same permission problem.

I solved it by adding the 'allow' parameter
:DEFAULT: allow:pi options:upriv,usedots,tm,rw
Where 'pi' is my user (I am using Raspian)

Furthermore I made the pi user owner of my external harddrive partitions:

sudo chown -R pi /media/NASDRIVE/
sudo chown -R pi /media/TIMEMACHINE/

Re: File sharing with OSX

Posted: Sat Oct 11, 2014 6:12 pm
by stef_mir
Hi there everybody.

I, like the three gentlemen above, am having no luck in gaining rw permission on AFP shared drives.
This is sad because I would like to use one of this drives as Time Capsule for my Mac. I spent the whole day modifying files but nothing seems to help. This is my final configuration of the AppleVolumes.Default:

Code: Select all

# The line below sets some DEFAULT, starting with Netatalk 2.1.
:DEFAULT: options:upriv,usedots,rw

# By default all users have access to their home directories.
~/                      "pi"

/mnt/TimeMachine "Backup" allow:pi options:tm,rw

# End of File

This configuration is useless, and I don't know what to do.

I have noticed that all the people saying it works were probably on Mountain Lion - I'm guessing that Mavericks changed something and we need to figure out what.

Re: File sharing with OSX

Posted: Wed Oct 15, 2014 4:14 pm
by lucas72
stef_mir wrote: I have noticed that all the people saying it works were probably on Mountain Lion - I'm guessing that Mavericks changed something and we need to figure out what.
+1 !!

Re: File sharing with OSX

Posted: Thu Oct 16, 2014 11:50 pm
by cyrano

Re: File sharing with OSX

Posted: Fri Oct 17, 2014 10:22 am
by lucas72
Thanks a lot Cyrano, I'll give it a try... now the problem is that Yosemite is out so... lets see what else Apple reserve for us :mrgreen:

Re: File sharing with OSX

Posted: Sun Oct 19, 2014 10:37 am
by cyrano
Whatever you learn from Mavericks should be continued on Yosemite. Apple is cleaning out older protocols and I think most of the cleaning has been done in Mavericks. So Yosemite should be the stable release if Mav was the experimental ;)

Re: File sharing with OSX

Posted: Fri Dec 25, 2015 7:41 pm
by Kelly_DK
Thanks for the guide on netatalk. I do have some problems though.
When accessing the external hdd on the pi it only shows 3,4GB free space, even though it is an empty HDD with 1TB of free space. It seems like it is showing the free space of the SD card and not the external HDD.
Whats wrong?

Re: File sharing with OSX

Posted: Thu Apr 14, 2016 7:24 pm
by rutledgek
I followed the instructions above, but keep getting hung up. The pi is appearing in OS X finder, I can connect as pi, but when I try to open the home director, I get the following error - The operation can't be completed because the original item for "Home Directory" can't be found.

Any suggestions? What am I doing wrong?
Thanks

Re: File sharing with OSX

Posted: Fri Apr 15, 2016 3:00 am
by rutledgek
I hope to get help anywhere. i have followed multiple tutorials, including this one to get file sharing up and running. this one i can log in as pi user, but when it show a list of folders to mount, any that i click on, i am told i don't have permission from the server. i am getting so frustrated right now, and i don't now what to do.

Re: File sharing with OSX

Posted: Sat Apr 22, 2017 3:44 pm
by trusoundman
I've set up my external hard drive on my Pi3 as the media drive for my Plex Library. It's formatted as Exfat so writing/reading from the mac shouldn't be a problem.

My applevolumes.default is configured as follows:
# The line below sets some DEFAULT, starting with Netatalk 2.1.
:DEFAULT: options:upriv,usedots,rw

# By default all users have access to their home directories.
~/ "Home Directory"
# /mnt/library "Pi External Hard Drive"

# End of File

My /etc/fstab is configured as follows:
roc /proc proc defaults 0 0
/dev/mmcblk0p6 /boot vfat defaults 0 2
/dev/mmcblk0p7 / ext4 defaults,noatime 0 1
/dev/sda1 /mnt/library exfat defaults 0 0
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that

I don't see the Pi anywhere from my mac. Pi's hostname is "plexberry-pi3".

Any ideas??

Re: File sharing with OSX

Posted: Sun Apr 23, 2017 12:58 am
by trusoundman
trusoundman wrote:I've set up my external hard drive on my Pi3 as the media drive for my Plex Library. It's formatted as Exfat so writing/reading from the mac shouldn't be a problem.

My applevolumes.default is configured as follows:
# The line below sets some DEFAULT, starting with Netatalk 2.1.
:DEFAULT: options:upriv,usedots,rw

# By default all users have access to their home directories.
~/ "Home Directory"
# /mnt/library "Pi External Hard Drive"

# End of File

My /etc/fstab is configured as follows:
roc /proc proc defaults 0 0
/dev/mmcblk0p6 /boot vfat defaults 0 2
/dev/mmcblk0p7 / ext4 defaults,noatime 0 1
/dev/sda1 /mnt/library exfat defaults 0 0
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that

I don't see the Pi anywhere from my mac. Pi's hostname is "plexberry-pi3".

Any ideas??
UPDATE- I got it working. Just needed to use "afp://[Pi IP address]". Updated my applevolumes.default to include the volume for the external hard drive and voila! I'm in business!

Re: File sharing with OSX

Posted: Fri Jun 16, 2017 12:55 am
by matthewsteez
I'm a little late here, but I've figured out why folks are having a rw issue, because chmod won't work on an externally mounted drive, apparently. Along with adding "rw" to the :defaults: line in applevolumes.default, you also need to edit your fstab file

Code: Select all

sudo nano /etc/fstab
Navigate to the line for your mounted drive, and edit it to look like this:

Code: Select all

/dev/sda1   /[your]/[drive]/[location]    [format type]    user,umask=0000,nofail   0   0
Then boot your pi

This will mount the drive and make it globally read/writable. Obviously not recommended for larger servers, but in your home it's fine. I also use the "nofail" option so my pi won't have problems booting if my drive isn't connected for some reason.

Hope this helps some folks!

Re: File sharing with OSX

Posted: Thu Aug 15, 2019 11:36 am
by Queenie
Hi,

I installed Netatalk a few times in the past on various devices but I recently bought a larger SD and burnt a clean version of Rasbian on it, and when I install Netatalk on it and try to edit the text on AppleVolumes.default I see an empty document.
I looked at the intended folder during the installation and files do appear for a bit, but as soon asthe install finishes they disappear.

Any suggestions? I'm in desperate need of this AFP for a project I'm working on.

Re: File sharing with OSX

Posted: Wed Aug 28, 2019 11:34 am
by saveriomior
I have permission issues but I don't know why I set up as you but even if I'm the admin (both pc and rasp) I can't join

Re: File sharing with OSX

Posted: Wed Oct 02, 2019 8:07 am
by ulysess