Samba config

  • Hosts allow is not specified. You need to add your network IP ans subnet specs, something like that 192.168.1.0/24. see picture.

    Debian/KDE-Plasma 6, FreeBSD-KDE

    OMV8 NAS 2-10GB LACP bond0 Fiber, pfSense+ firewall/router

  • Hosts allow is not specified. You need to add your network IP ans subnet specs, something like that 192.168.1.0/24. see picture.


    Thank you for that, I'll give that a try later today and see how that works out. As a newbie, I completely appreciate you looking at my screen captures to catch that.

  • Ah, interesting. I installed 'extras' after I had already created my folders, and that access permissions button was not available when I did create them. I used 'setpermissions' (from extras) to set that access mode after I installed extras.

    OMV 6.x AMD64, HP Microserver N40L, 16GB ECC DDR, 8TB Ironwolf HDD, 480 GB Kingston SSD.

    OMVExtras.org: Resetperms, Sharerootfs

    SMB, SSH, WeTTY, Logitech Media Server Version: 8.3.1.

    • Official Post

    Ah, interesting. I installed 'extras' after I had already created my folders, and that access permissions button was not available when I did create them. I used 'setpermissions' (from extras) to set that access mode after I installed extras.

    What button are you referring to exactly? There are many.

  • As a test, I created a new share, for a new folder on a specific drive, not the mergerfs volume.

    I added that share as an SMB share with the settings listed in the OMV-extras link. (guests allowed)

    I even tried adding my laptop's ip, then the entire subnet to the Hosts Allow list.

    I still can't access it.


    I also created another test share for an existing folder with files, and ran Reset Permissions on it.

    No luck.


    NFS works fine on other systems, it's just the SMB shares that don't work.

    To clarify, at this point I'm not even trying to restrict SMB shares, I just want guest access working.

  • I had a problem yesterday where I created a new share down a path where the root was mode drwx--s--- and the directory I wanted to access below that was drwxrsxrwx and I could not get to it from SMB on my Windows 11 desktop. I changed the mode on the root folder to match the lower directory, and then access all worked. So it seems to be a issue of nested folders having to need access all the way down. At least, that is what I had to do.

    OMV 6.x AMD64, HP Microserver N40L, 16GB ECC DDR, 8TB Ironwolf HDD, 480 GB Kingston SSD.

    OMVExtras.org: Resetperms, Sharerootfs

    SMB, SSH, WeTTY, Logitech Media Server Version: 8.3.1.

    • Official Post

    with permissions other than 777?

    I haven't read the whole thread, but I can only say that this is never necessary.

    If you summarize what you want to do I can try to give you a method.

  • I have not, and I encountered a YouTuber that states that in a video, and acknowledges that people will argue that you should not do that, but then goes on to say that hey, you're behind a firewall, right?


    I could not get guest access to work from Windows 11. Simply could not. Linux accessed with no issues but Windows 11 was driving me up the wall until I opened it up.


    If someone provides a step by step to get it to work without doing that, I'll give it another shot.


    I tried to set up a user, and use user credentials to access, and that also failed. I had a pressing need to get some data off another machine, so I did what I did. And as I said, I was following a guide on YouTube that got it working.

    OMV 6.x AMD64, HP Microserver N40L, 16GB ECC DDR, 8TB Ironwolf HDD, 480 GB Kingston SSD.

    OMVExtras.org: Resetperms, Sharerootfs

    SMB, SSH, WeTTY, Logitech Media Server Version: 8.3.1.

  • Hi,

    how can I configure SMB in OMV that it corresponds to this configuration within /etc/samba/smb.conf witch I have created using Webmin?



    Thank you!

  • I'd would try to find every point in GUI you mention on your list and after applying these new settings check smb.conf using terminal.


    Sorry, I can't help more atm since I don't have access to my system.

    OMV7.x

    AMD Ryzen 5 5600G

    ASRock B550M Pro4

    Crucial DIMM 16GB

    Western Digital WD Blue SN570

    Seagate IronWolf 8TB/WD Red 8TB

    AeroCool CS-102

    • Official Post

    On the cli testparm will test if your settings are valid and show you the settings.


     Yourhost/#/services/smb/settings "Extra options" is the place to put your extra options. You can also create a directory mkdir /etc/samba/smbconf.d and add a file there with your configurations. Then add "include = /etc/samba/smb.conf.d" to "Exrra options".

  • Look at post #22. You need to ADD "Hosts Allow".

    Debian/KDE-Plasma 6, FreeBSD-KDE

    OMV8 NAS 2-10GB LACP bond0 Fiber, pfSense+ firewall/router

  • Look at post #22. You need to ADD "Hosts Allow".

    Hi,


    thanks but my problem is that the Samba config that I have posted was modified using Webmin.

    If I change Samba in OMV the additional things that I have changed like

    Code
            user = Dirk,dst,root,@dst,@root,@sambashare
            valid users = Dirk,dst,root,@dst,@root,@sambashare
            force create mode = 0664
            create mode = 0664
            directory mode = 0775
            write list = Dirk,dst,root,@dst,@root,@sambashare

    get lost and I have to do it again within Webmin.

    Now my question was how I can make these same changes in OMV so that they stick,

  • On the cli testparm will test if your settings are valid and show you the settings.


     Yourhost/#/services/smb/settings "Extra options" is the place to put your extra options. You can also create a directory mkdir /etc/samba/smbconf.d and add a file there with your configurations. Then add "include = /etc/samba/smb.conf.d" to "Exrra options".

    Hi,

    do you have an example or where I can read more?

    Do I create a conf for each share?

    What format does it have?

    Do I only add the additional options?


    Thank you!

  • DST73 The original smb config you posted in #31 above and again in part in #36 above needs some explanation of how it's meant to work. For example, I might be wrong. but if your are trying set ACLs on OMV data, why would you then you use SAMBA mode masks? Aren't those SAMBA masks potentially going to over-ride any ACL? Also, seeing as the group root has the single member root, why would you need both root and "@root" in your smb config? Is the same also true for "dst" and "@dst"?

  • please consider not to use webmin, is not enought OMV WebGUI for your needs?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!