I realize this is not really openHAB related, but since I configured Samba purely following the openHAB docs. And I’m afraid to follow any guidance from the internet, because I don’t want to screw up the openHAB Samba shares, which work.
I thought just appending the following to /etc/samba/smb.conf:
[GedeeldeMap]
comment=Gedeelde map van mini-pc kelder
path=/home/erik/Openbaar
browseable = yes
writeable=Yes
only guest=no
public=no
create mask=0777
directory mask=0777
I then noticed that I can’t e.g. touch tweedetest.txt as user erik in that folder. That’s probably logical, since it’s owned by user openhab, but not very practical
And now it seems to work in both ways. (I had added test.txt from my Windows laptop). Both files are not owned by the same user, but I guess that doesn’t matter too much?
erik@MinipcLG2:~/Openbaar$ ls -pal
totaal 32
drwxrwxr-x+ 2 openhab openhab 4096 nov 21 19:43 ./
drwx-----x 27 erik erik 12288 nov 21 15:25 ../
-rwxrw-r-- 1 openhab openhab 0 nov 21 19:35 test.txt
-rw-rw-r-- 1 erik erik 0 nov 21 19:43 tweedetest.txt