I needed to re-setup my windows machine but did not touch my openhabianpi installation. However, after reconnecting the samba share and re-installing Visual Studio Code I can read access my files on the share but have no write access anymore.
I tried changing the directory mask in smbd.conf to 0777 and setting a new samba password for user openhab with smbpasswd -a but without success.
When I make samba show its current settings I see the following output:
[16:41:05] openhabian@openHABianPi:/etc/openhab2/items$ openhab-cli info
Version: 2.5.9 (Build)
User: openhab (Active Process 636)
User Groups: openhab tty dialout audio bluetooth gpio
Directories: Folder Name | Path | User:Group
----------- | ---- | ----------
OPENHAB_HOME | /usr/share/openhab2 | openhab:openhab
OPENHAB_RUNTIME | /usr/share/openhab2/runtime | openhab:openhab
OPENHAB_USERDATA | /var/lib/openhab2 | openhab:openhabian
OPENHAB_CONF | /etc/openhab2 | openhab:openhabian
OPENHAB_LOGDIR | /var/log/openhab2 | openhab:openhabian
OPENHAB_BACKUPS | /var/lib/openhab2/backups | root:root
What worries me a bit is the different group of user openhab being shown for different directories (openhab or openhabian). Is it possible that this is somehow the root cause, being in the wrong group? I did not change the group though and also do not see a way to change it in the configuration.