SAMBA Share Issues

yes, the mapped drive’s credentials likely interfered with your other access tries to the server, even if it was a different folder (share). That’s why you probably got part of your message above about multiple connections. That’s why I suggested the use of the 'net use` commands above.

It still doesn’t explain the proxmox issue you described above. If that doesn’t resolve you could see whether you want to set up a NFS export instead of samba on Rockstor to backup the proxmox data, since that’s based on debian, and continue with samba for your other systems.

Here is my challenge now…

If I use my wife’s credentials and log into her share, Windows no longer asks for credentials for my share and Rockstor just lets me in. If I use my credntials and log into my share, it no longer asks for credentials for my wife’s share and Rockstor just lets me in. How do I sperate these so Rockstor only allows the right credentials into the right share?

Ok… I found PART of my answer…

I changed BOTH shares access control to this

Now, it will ONLY let me into the share if credentials match… HOWEVER… still not 100%

If I log into Kitty with the credentials for that share, I can not get into Mike. Once I log into one share, Windows doesn’t ask for the credentials for the other share and just tries to reuse the ones for the share I was able to log into. The result, once I log into one share, the other is denied until I log out of windows or reboot the computer. I know that is likely a Windows issue, but how do I fix it? Any ideas? If I can fix that, then I am all good

Yes, I wanted to mentioned that you probably have to change the Other settings (unchecking them) and then also the Group if they belong to the same one.

This is a windows problem, as it will (if you check net use at the command line now, keep the credentials and not try to throw them out, i.e. just give you a refusal rather than ask you for a new account login. I believe, but I might be wrong, I suspect you either have to have an AD for authentication set up (both your windows machine and also have Rockstor join the AD), or you have separate user accounts on the windows machine, so the credentials are stored by windows user account and network share, rather than by network share alone.

There might be something you can do with GPO stuff, but I have no idea …

May be by enabling this setting:

I didn’t try that, as I do use the credentials manager and didn’t want to mess anything up.

I have that enabled already, but I also do not use Credential Manager. So, enabling that did not change anything.

I have done a bunch of reading and it seems that this is not a fixable problem. Apparently, there have been complaints of this problem going back decades and Microsoft refuses to provide a fix calling it a “security measure.” Windows will ONLY allow access to one SMB per user login. If I want to change SMB shares, per Microsoft documentation, I have to log completely out of Windows and log back in.It’s yet another in a long line of moronic decisions Microsoft has made. Honestly, if Windows could access something other then an SMB share, I would probably use that instead.Now, that said, I want the seperate directories for OwnCloud, not Windows, so if I can find a share system that OwnCloud can map, other then SMB, I will probably dump the SMB. I also need to get instructions to create a share that Proxmox can map for back ups. You mentioned Proxmox should be able to connect to NFS, but I need to learn how to get Proxmox to do that so I can setup my backups again. Two issues… neither have to do with Rockstor, so I will quit bugging you all for help with this.

I thank you all for your guidance, support and help of a noob.

yes, that is weird, that there is no way, especially in the Pro version to configure that caching for this.

As for the nfs in Proxmox, you can probably find any linux tutorial and do it via the command line. In Rockstor it’s a similar setup like you would do for samba.

If you do figure something out for your “separation” requirement, do let the community know, because you’re not the only that has the requirement w.r.t Rockstor.

Good luck!

Just read carefully through this thread and the detailed advice - thanks Hooverdan!.
I’ve experienced precisely the same set of issues as @greyson1973 with a samba share set up in the same manner.

For me it’s a fresh install of Rockstor and my first samba exported share.
No indication of cached connections shown by “net use”, but tailing the smbd log shows the failed authentication attempts.

I do have several mounted shared from another nas in my LAN, running amahi. In fact, the idea is to migrate the network storage over to Rockstor as Amahi seems to be defunct.

Anyway, I suspect cross contamination between the creds for the different shares. Mapping a network drive to the Rockstor share on my wife’s laptop worked fine; when I subsequently rebooted my own Windows 11 device, it came back with the shares working as expected. The smbd log now shows a lineitem “Allowed connection from 192.168.0.183” when connection attempts are made from my Windows device.

So, all’s well. I thought I’d share my experiences in case any other folks get similar problems.

My take away is that Windows might not cope well with non-vanilla home LAN setups. I guess Microsoft would just point me in the direction of AD

cheers
Steve

1 Like