Samba file sharing

hey,
i am using openhabian and i wanted to ask if it is possible to share a usb drive plugged into the pi over the SMB network. i know openhabian as smb file sharing but it is possible to read the files on the usb stick over the network

Yes, just add the configuration to /etc/samba/smb.conf like the configuration for /etc/openhab2

Keep in mind that you have to sudo systemctl restart smb.service to adopt the changes.

i want the media files which are on the a usb stick attached to the pi to be visible on the network

Yes. You have to add a configuration for an additional share… please read the docs…

can you please send me a link. its very confusing and i have just started using openhabian

Please take a look at /etc/samba/smb.conf. At the very end you will find the share definition for openhab shares. Just copy the definition and change the paths accordingly. You have to edit the file as user root, so please use

sudo nano /etc/samba/smb.conf

to edit the file. After saving the file, restart samba using

sudo systemctl restart smb.service