Re: [Samba] Writing on an HFS+ drive on raspberry pi
- Date: Sun, 25 Mar 2018 23:45:52 +0100
- From: Andrea Devoto via samba <samba@xxxxxxxxxxxxxxx>
- Subject: Re: [Samba] Writing on an HFS+ drive on raspberry pi
Yes I did correctly mount the hfs plus drive using fstab.
I can write files in the drive when I am logged in as a user .
It seems that via the samba connection I cannot write files from my Mac, correct.
I do not the possibility the use the share, but I don’t know what you mean by disabling the unix estension. I will read up on it.
Unfortunately mac doesn’t come with getfacl but I have read that the option -e of ls should replace it, here’s the output:
sudo ls -lae
drwxr-xr-x@ 9 root wheel 288 Mar 25 23:37 .
0: group:everyone deny add_file,add_subdirectory,directory_inherit,only_inherit
drwxr-xr-x 36 root wheel 1152 Mar 25 23:14 ..
-rw-r--r--@ 1 andrea admin 6148 Aug 29 2016 .DS_Store
lrwxr-xr-x 1 root wheel 1 Mar 19 11:17 Macintosh HD -> /
drwxr-xr-x 28 root wheel 1020 Mar 25 23:14 Macintosh HD 1
drwxr-xr-x+ 3 root wheel 96 Sep 29 21:42 Preboot
0: group:everyone inherited deny add_file,add_subdirectory,directory_inherit
drwx------ 1 root wheel 16384 Mar 25 23:37 Time Machine
drwx------ 1 andrea staff 16384 Mar 25 23:37 Time Machine-1
drwx------ 1 andrea staff 16384 Mar 25 23:40 andrea
the mounted drive andrea is the home directory on my pi on which I do have write permissions. I am not sure why Time Machine (the backup drive) has been mounted twice with different permissions.
> On 25 Mar 2018, at 23:35, Waishon via samba <samba@xxxxxxxxxxxxxxx> wrote:
> Hey there,
> to be clear:
> You've mounted a HFS+ drive on your raspberry pi with rw permissions using fstab.
> You're able to write files (e.g. as root) on your shares directory without samba, right?
> As soon as you try to connect Samba using your Mac you haven't any write permissions, right?
> Have you tried using a Windows machine to connect to your share? Or to disable the Unix extension?
> I'm not living in the apple world, but are you able to use the terminal on your Mac and cd to the directory where OSX has mounted the share? And then do a simple "ls -la" or if available a getfacl and mail us the output back?
> Von: Andrea Devoto via samba
> Gesendet: Montag, 26. März, 00:15
> Betreff: [Samba] Writing on an HFS+ drive on raspberry pi
> An: samba@xxxxxxxxxxxxxxx
> I have been trying for the past few months to set up my raspberry pi to do incremental backups using time machine over Samba since AFP is being deprecated. Also since the latest release of samba (4.8.0) came out with support for time machine I decided to compile it myself and give it a go. The drive is formatted in HFS plus. The main problem that I am having is that even though I can mount the drive on the raspberry pi with writing permissions, I still cannot manage to write to the drive. At first I thought it was a problem of the interface between samba and time machine, but after trying out CCC as an alternative, I noticed that even CCC couldn't make backups because it couldn't create the sparsebundle image. Also, if I access the samba drive from finder I cannot create folders nor delete/rename them. So, I realised that the problem must lie within permissions. So far the steps that I have taken to get towards the right direction are: 1) I have installed hfsplus, hfsutils, hfsprogs
> to give HFS plus support to the Rpi. 2) Disabled journaling on the drive. I have read in a few forums that journaling prevents Linux systems from writing on hfsplus drives. 3) Edited the /etc/fstab to force mount the drive as -rw. From the command mount the drive appears to be mounted as rw. 4) The drive has been added to the smb.conf file, with the option read only = no. This should make the driver writable according to the documentation. 5) Since these steps were not enough, I decided to create a new user on my Rpi with the same name and id as my mac user. I added the user as a samba user and made the user own (recursively) the directory in which the drive is mounted. Also, everything in the directory has rw permissions for both user and group. 6) I also made sure that the uid for the drive directory matched with the uid of my mac user (501). After trying all of these options, I still cannot write on my backup drive and this prevents me from backing up my data (but I can write in
> the default home directory created by samba, so I think that the problem should not have to do with samba's configuration). I really do not know in which direction to go now as I feel like I have exhausted every option. Is there a kind soul around here who has a clue on what else I could try? Many thanks in advance! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
To unsubscribe from this list go to the following URL and read the