Jo.esp
Posts: 1
Joined: Mon Jan 20, 2014 1:59 pm

Re: File sharing with OSX

Mon Jan 20, 2014 2:06 pm

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

lucas72
Posts: 3
Joined: Fri Mar 07, 2014 4:58 pm

Re: File sharing with OSX

Fri Mar 07, 2014 5:01 pm

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:

User avatar
Berend
Posts: 1
Joined: Thu Mar 20, 2014 9:40 am
Location: Utrecht, the Netherlands
Contact: Website

Re: File sharing with OSX

Thu Mar 20, 2014 9:44 am

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/
Download our new app: Command Pi - track your CPU usage, memory usage, temperature, turbo mode settings and restart or shutdown your Raspberry Pi and its processes in just one click.

http://www.studiozoetekauw.nl/command-pi-app-for-raspberry-pi/

stef_mir
Posts: 6
Joined: Sat Oct 11, 2014 6:01 pm

Re: File sharing with OSX

Sat Oct 11, 2014 6:12 pm

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.

lucas72
Posts: 3
Joined: Fri Mar 07, 2014 4:58 pm

Re: File sharing with OSX

Wed Oct 15, 2014 4:14 pm

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 !!

User avatar
cyrano
Posts: 714
Joined: Wed Dec 05, 2012 11:48 pm
Location: Belgium

Re: File sharing with OSX

Thu Oct 16, 2014 11:50 pm


lucas72
Posts: 3
Joined: Fri Mar 07, 2014 4:58 pm

Re: File sharing with OSX

Fri Oct 17, 2014 10:22 am

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:

User avatar
cyrano
Posts: 714
Joined: Wed Dec 05, 2012 11:48 pm
Location: Belgium

Re: File sharing with OSX

Sun Oct 19, 2014 10:37 am

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 ;)

Kelly_DK
Posts: 5
Joined: Sat Sep 26, 2015 7:58 pm

Re: File sharing with OSX

Fri Dec 25, 2015 7:41 pm

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?

rutledgek
Posts: 2
Joined: Thu Apr 14, 2016 7:22 pm

Re: File sharing with OSX

Thu Apr 14, 2016 7:24 pm

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

rutledgek
Posts: 2
Joined: Thu Apr 14, 2016 7:22 pm

Re: File sharing with OSX

Fri Apr 15, 2016 3:00 am

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.

trusoundman
Posts: 2
Joined: Sat Apr 22, 2017 3:38 pm

Re: File sharing with OSX

Sat Apr 22, 2017 3:44 pm

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??

trusoundman
Posts: 2
Joined: Sat Apr 22, 2017 3:38 pm

Re: File sharing with OSX

Sun Apr 23, 2017 12:58 am

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!

matthewsteez
Posts: 1
Joined: Fri Jun 16, 2017 12:44 am

Re: File sharing with OSX

Fri Jun 16, 2017 12:55 am

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!

Queenie
Posts: 1
Joined: Sun May 21, 2017 8:05 am

Re: File sharing with OSX

Thu Aug 15, 2019 11:36 am

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.

saveriomior
Posts: 1
Joined: Wed Aug 28, 2019 11:31 am

Re: File sharing with OSX

Wed Aug 28, 2019 11:34 am

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

User avatar
ulysess
Posts: 306
Joined: Thu Aug 02, 2012 6:35 am
Location: Spain
Contact: Website

Re: File sharing with OSX

Wed Oct 02, 2019 8:07 am

Mis apuntes de...Raspberry Pi: http://misapuntesde.com
Google Docs RPi: http://goo.gl/Iwhbq

Return to “Networking and servers”