podaj co zwraca ta komenda
stat -c "%U %G" /etc/openhab2
wprowadź takie zmiany w smb.conf
[openHAB-conf]
comment=openHAB2 site configuration
path=/etc/openhab2
writeable=yes
public=no
create mask=0664
directory mask=0775
veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/._*/
delete veto files = yes
force user = openhab
force group = openhab
browseable=Yes
only guest=no
Zrestartuj sambe
sudo service smbd restart
Jeszcze może zmień uprawnienia plików jeśli tworzyłeś openhabianem
sudo chown openhab:openhab /etc/openhab2 -R