If I am doing something obviously wrong, I would love to hear it.
Samba config
-
- OMV 6.x
- sonofwatt
-
-
Display More
Okay, total newbie here, and SMB from Windows 11 Home (fully up to date) to OMV 6.3 is driving me up the wall.
All I get is access denied, contact your network administrator messages.
Here is my OMV User
My SMB config
And my share:
I intend to use my user creds douglas dougs-pasword (not the real password there <<<) to login
If I just click on the network share on my PC it doesn't even offer me the chance to add credentials, and if I try to map, it does not succeed.
I have tried user 'douglas' 'omv6-01\douglas' and '192.168.1.200\douglas' along with the password. Nothing.
I tied using my work laptop, which is Windows 11 Pro, with no better luck.
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.
-
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.
-
Have you had luck getting this to work with permissions other than 777?
-
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.
-
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?
Code
Display More[Ext_HD] hide dot files = yes force directory mode = 0775 writeable = yes user = Dirk,dst,root,@dst,@root,@sambashare store dos attributes = no force user = root force group = root ea support = no vfs objects = inherit permissions = no inherit acls = yes valid users = Dirk,dst,root,@dst,@root,@sambashare follow symlinks = yes force create mode = 0664 hide special files = yes printable = no create mode = 0664 directory mode = 0775 comment = Ext_HD_2 write list = Dirk,dst,root,@dst,@root,@sambashare path = /srv/dev-disk-by-uuid-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.
-
-
You can also add extra options in the "extra options" field at the bottom of the form.
-
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".
-
Display More
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?
Code
Display More[Ext_HD] hide dot files = yes force directory mode = 0775 writeable = yes user = Dirk,dst,root,@dst,@root,@sambashare store dos attributes = no force user = root force group = root ea support = no vfs objects = inherit permissions = no inherit acls = yes valid users = Dirk,dst,root,@dst,@root,@sambashare follow symlinks = yes force create mode = 0664 hide special files = yes printable = no create mode = 0664 directory mode = 0775 comment = Ext_HD_2 write list = Dirk,dst,root,@dst,@root,@sambashare path = /srv/dev-disk-by-uuid-Thank you!
Look at post #22. You need to ADD "Hosts Allow".
-
-
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
Codeuser = 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,@sambashareget 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"?
-
-
Display More
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
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,
please consider not to use webmin, is not enought OMV WebGUI for your needs?
-
I wouldn't mix webmin and OMV GUI either.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!