Openhabian - Samba shares

Tried a new OH install on a Pi4. Using the latest Openhabian release. The samba shares are visible but the directory structure of the openHAB-share is different. Normally I see:

openhab2-addons
openhab2-conf
openhab2-logs
openhab2-sys
openhab2-userdata

On this install I see

cache
config
etc
jsondb
peristence
tmp

I reflashed the SD card and started again but with the same result. Using openhabian-config I redid the Samba option but this didn’t change it either.

Wondering what I did wrong or did something change (cannot find any information in the forum or docs)

Console output below

2020-07-07_10:00:48_CDT [openHABian] Checking for root privileges... OK
2020-07-07_10:00:48_CDT [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2020-07-07_10:00:48_CDT [openHABian] openHABian configuration tool version: [stable]v1.5-644(e01719a)
2020-07-07_10:00:48_CDT [openHABian] Checking for changes in origin branch HEAD ... OK
2020-07-07_10:18:33_CDT [openHABian] Switching to branch  ... fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
FAILED
2020-07-07_10:18:52_CDT [openHABian] Updating Linux package information ...
2020-07-07_10:18:52_CDT [openHABian] Setting up Samba network shares... Copying over custom 'smb.conf'...
Writing authentication data to openHABian default...

$ systemctl enable smbd.service
Synchronizing state of smbd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable smbd

$ systemctl restart smbd.service
OK
2020-07-07_10:27:16_CDT [openHABian] Updating Linux package information ...
2020-07-07_10:27:16_CDT [openHABian] Preparing openHAB folder mounts under /srv/...
$ systemctl is-active --quiet smbd

$ systemctl is-active --quiet zram-config

$ umount -q /srv/openhab2-sys /srv/openhab2-conf /srv/openhab2-userdata /srv/openhab2-logs /srv/openhab2-addons

$ rm -f /etc/systemd/system/srv-openhab2-addons.mount /etc/systemd/system/srv-openhab2-conf.mount /etc/systemd/system/srv-openhab2-logs.mount /etc/systemd/system/srv-openhab2-sys.mount /etc/systemd/system/srv-openhab2-userdata.mount

$ mkdir -p /srv/openhab2-sys /srv/openhab2-conf /srv/openhab2-userdata /srv/openhab2-logs /srv/openhab2-addons

$ cp /opt/openhabian/includes/srv_readme.txt /srv/README.txt

$ chmod ugo+w /srv /srv/README.txt

$ create_mount /usr/share/openhab2 sys

$ create_mount /etc/openhab2 conf

$ create_mount /var/lib/openhab2 userdata

$ create_mount /var/log/openhab2 logs

$ create_mount /usr/share/openhab2/addons addons
OK
2020-07-07_10:27:20_CDT [openHABian] Applying file permissions recommendations...
$ adduser openhab audio
The user `openhab' is already a member of `audio'.

$ adduser openhabian audio
The user `openhabian' is already a member of `audio'.

$ adduser openhab bluetooth
The user `openhab' is already a member of `bluetooth'.

$ adduser openhabian bluetooth
The user `openhabian' is already a member of `bluetooth'.

$ adduser openhab dialout
The user `openhab' is already a member of `dialout'.

$ adduser openhabian dialout
The user `openhabian' is already a member of `dialout'.

$ adduser openhab gpio
The user `openhab' is already a member of `gpio'.

$ adduser openhabian gpio
The user `openhabian' is already a member of `gpio'.

$ adduser openhab tty
The user `openhab' is already a member of `tty'.

$ adduser openhabian tty
The user `openhabian' is already a member of `tty'.

$ adduser openhabian openhab
The user `openhabian' is already a member of `openhab'.

$ chown openhab:openhab /srv /srv/README.txt /opt

$ chmod ugo+w /srv /srv/README.txt

$ chown -R openhab:openhab /etc/openhab2 /var/lib/openhab2 /var/log/openhab2 /usr/share/openhab2

$ chmod -R ug+wX /opt /etc/openhab2 /var/lib/openhab2 /var/log/openhab2 /usr/share/openhab2

$ chown -R openhabian:openhabian /home/openhabian

$ setfacl -R --remove-all /etc/openhab2 /var/lib/openhab2 /var/log/openhab2 /usr/share/openhab2

$ setfacl -R -m g::rwX /etc/openhab2 /var/lib/openhab2 /var/log/openhab2 /usr/share/openhab2

$ setfacl -R -m d:g::rwX /etc/openhab2 /var/lib/openhab2 /var/log/openhab2 /usr/share/openhab2
OK
2020-07-07_10:27:22_CDT [openHABian] Applying miscellaneous system settings...
$ setcap cap_net_raw,cap_net_admin=+eip cap_net_bind_service=+ep /opt/jdk/zulu8.46.0.225-ca-jdk8.0.252-linux_aarch32hf/bin/java

$ setcap cap_net_raw,cap_net_admin=+eip cap_net_bind_service=+ep /usr/sbin/arping

$ echo Creating persistent systemd journal folder location: /var/log/journal
Creating persistent systemd journal folder location: /var/log/journal

$ echo Keeping at most 30 days of systemd journal entries
Keeping at most 30 days of systemd journal entries
OK
2020-07-07_10:27:22_CDT [openHABian] Setting up Samba network shares... Copying over custom 'smb.conf'...
Writing authentication data to openHABian default...

$ systemctl enable smbd.service
Synchronizing state of smbd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable smbd

$ systemctl restart smbd.service
OK



Have a look into the content of the file /etc/samba/smb.conf.
There it’s defined which directories to be exported as SMB/Samba shares.
In this thread an other user asked a similar question.
As I do not use openhabian I just can assume that the default configuration once was changed.

2 Likes

@Wolfgang_S thank you. That was it

@mstormi - should I open a issue on github?

No, it was intentionally changed. You should be seeing what the guy in the other thread showed, though.