I use a repository based installation of OH 2.5 on a virtual server and a Win 10 Pro desktop and a virtual ubuntu 20.04 LTS desktop to connect to the OH share folders without luck. I installed samba by this guide and activated smb 1.0 support in the windows features and changed the group polices for unsafe guest logon… no joy. I see the folder but have no access from windows either from ubuntu.
Which user are you using to connect to the openHAB instance? That user should be used to connect from another to the samba share. Reading your OP I doubt the user openhabian exists at all.
@opus it’s not the openhab user I use to connected to OH. It’s my personal username. I have althought tried that. “openhabian” was just to verfiy that it’s the repo version
Sorry, I’m running out of ideas. I too run OH3 on Ubuntu 20.04 LTS (server in a VirtualBox VM) with Samba installed using the same guide as you. The only difference is that I only use openhab user to connect the Samba share from a Windows machine (10 Enterprise) and a Mac (both work flawlessly).
Do you see your users and any file locks using sudo smbstatus ?
Perhaps if would be useful to check the logs at /var/log/samba
Samba version 4.7.6-Ubuntu
PID Username Group Machine Protocol Version Encryption Signing
Service pid Machine Connected at Encryption Signing
No locked files
here the log from the windows desktop:
canonicalize_connect_path failed for service openHAB-conf, path /etc/openhab
[2021/01/25 13:52:43.412634, 0] …/source3/smbd/service.c:774(make_connection_snum)
canonicalize_connect_path failed for service openHAB-conf, path /etc/openhab
[2021/01/25 13:52:43.413737, 0] …/source3/smbd/service.c:774(make_connection_snum)
canonicalize_connect_path failed for service openHAB-conf, path /etc/openhab
can I change the openhab user or what’s the easiest way to access share folders?
big thanks for your help, really appreciate that
Yes, I (or we?) missed that since it is openhab2 ONLY for the version 2! Version 1 and the actual openhab version 3 are using the folders and service name without the number!
When looking onto the guide from the OP you should have selected a Version 2.X and not the preselected latest (which is version 3).
Hi Bill,
‘path’ in config should point to ‘openhab2’ instead of ‘openhab’ i assume. I had the same issue after restoring SD image on a new card.
See if that helps.