Access SMB Share with NextCloud

Hey there
I know, it’s not good practice to just join a community and immediately ask questions without any contribution at all, but I’m quite stuck with my problem.

The Situation
I’ve watched Lawrence System’s Tutorial on how to setup NextCloud on TrueNAS (https://www.youtube.com/watch?v=8Cxg1mAYtL8) and it worked fine. The setup now looks like this:


As in the tutorial explained, I made a dataset for the config and one for the data. Now I want to access the “Generell” SMB-Share of my local network with NextCloud. The goal of this operation is to remove the NextCloud overhead when in the local LAN for more performance but still use NextCloud for automatic backup or access via smartphone.

I watched a couple of tutorials on this topic but they all failed me when I had to add an smbclient to my NextCloud Container in order to make the connection.

E.g. this tutorial only covers how to add an smbclient in TrueNAS Core and doesn’t work with Scale: https://www.youtube.com/watch?v=C4QsRxX4nz0&t=322s

There are now a couple of questions:

  1. Is what i want to do dumb and I should just use NextCloud for everything since the overhead isn’t that big after all?
  2. If the Idea isn’t stupid, how could I install the smbclient on my docker?
  3. How would I need to handle the permissions for such a shared folder? Should I choose to use the “Generell” Dataset as my data directory for NextCloud instead of “NextCloud_Data”?

Not at all!!! We all start not knowing anything, and asking intelligent questions is a good way to learn.

Unfortunately, I am, not a nextcloud user myself so I will leave it to others to try to answer your questions.

Not by any means dumb, but IMO violates Occam’s Razor in that NextCloud can upload files from a Windows or Linux folder directly without SMB sharing.

Suggest you look for the answer in another YouTube tutorial by Lawrence Systems: How To Setup TrueNAS Scale Apps With Shares For Host Path Volumes https://www.youtube.com/watch?v=vXGs221il3g

This demos how to set up an SMB share for Syncthing but probably the process is much the same although NextCloud storage entries in the app setup are more complex and I don’t know how those entries would work.