You’ve installed it via a package which means everything is done for you. The part about changing ownership is under the “Manual Instructions” which is an alternative installtion method. You’ve simply scrolled too far
After installing the package, you need only start openHAB using:
sudo systemctl start openhab2
If you want to start openHAB automatically on boot or crash use:
sudo systemctl enable openhab2
If you’re interested where everything is installed, you can use the openhab-cli commands:
Right but the Samba access is not enabled as part of the package install. Guessing package or manual that Samba section is still relevant? Says there are samba settings specifically for package installs. Unless I do not need to change owner.
Right, but only if guests are allowed to write at all.
But if there is another user configured at openHAB machine, like mywindowsuser (the same user name as on your windows PC)
sudo adduser mywindowsuser
one can setup this user to be allowed to use samba shares:
sudo smbpasswd mywindowsuser
will ask for a samba password for mywindowsuser. Set the same password as set in windows, this way your windows PC will connect to samba without asking any user or password at all, and the files are written as user openhab