I have an external HDD (ext4) connected to my Raspberry Pi, which seems to mount via OSMC’s automounting and is automatically shared via Samba. My fstab and smb.conf both look fresh and unedited, and I don’t remember ever setting those up on this particular box, anyway. The drive gets mounted to /media as the root user; and as far as I know, root login is disabled, as well as remote login as root. Totally vanilla install, I believe.
On the other end, I have my Mac desktop with another external HDD (hfs+), which I use as the source for rsync to the external HDD attached to the Raspberry Pi as the destination. This HDD contains several folders/files where the permissions need to be left as-is.
So! The problem comes in when I try to rsync, as the osmc user on the Raspberry Pi doesn’t always have the correct permissions to read/write to the destination drive, since the drive is mounted as root and all the folders and files belong to root.
Obviously I don’t want to enable (remote) root-login, but I’m wondering what the easiest, most foolproof/upgrade-proof method would be here, which also doesn’t interfere with OSMC’s automounting and autosharing via Samba, as I have no idea how either of those works. Should I just mount the drive as the osmc user via fstab? Also, what settings does OSMC’s autmount use by default?