Jump to content

I migrated from Synology to Unraid, but the SMB setup in Unraid is driving me crazy.


Go to solution Solved by Frank1940,

Recommended Posts

Posted (edited)

Unraid versions: 7.0.0 & 6.12

Windowis versions:Windows 10 LTSC 21H2

 

Currently, I'm struggling with Unraid's SMB settings. I can only say that accessing SMB from Windows is not very user-friendly.

 

How should I configure Unraid to prompt for a username and password when accessing \\192.168.8.5 (Unraid IP) from Windows?

PixPin_2024-11-12_09-58-42.png.cbaf643b0088a28a420c700acb4cf1c7.pngPixPin_2024-11-12_09-59-41.thumb.png.a2e950235a9b60d4aedae945b0aa936f.png

 

 

I don’t want to enable gpedit.msc's "Enable insecure guest logons" because I don't want to change the default settings in Windows. I also don't want others to see shared folder names when browsing through the Unraid IP on the local network.

 

Final question: The SMB settings shown in the image are not giving me the result I want. How can I configure Unraid’s SMB to make it as convenient to access from Windows as traditional NAS (Synology) SMB?

 

 

 

1.thumb.png.11dfca39b3d9c8d6587b47cdf9179a09.png2.thumb.png.b5a83f7569e56e561aadd87f04679547.png

 

Edited by zeng
Posted (edited)

See here for instruction to set up SMB to work with Unraid and Windows:

 

https://forums.unraid.net/topic/110580-security-is-not-a-dirty-word-unraid-windows-1011-smb-setup/

 

Basically, this procedure is designed to allow Windows to implement all of the security features that Microsoft requires.

 

The only one this procedure may not meet is the 'server signing' required in 24H2 release. 

Edited by Frank1940
wrong word
Posted

https://forums.unraid.net/topic/110580-security-is-not-a-dirty-word-unraid-windows-1011-smb-setup/

 

The link above does not solve my problem. I just want the SMB on Unraid to function like a traditional NAS system, where entering the IP address prompts for authentication.

Why is it that on the same Windows system, Synology and other traditional NAS systems can prompt for authentication, but Unraid cannot? The issue should be related to the Unraid configuration.

I suspect the problem lies in Unraid's Samba extra configuration. What parameters should I enter to make it behave like a traditional NAS syste

 

PixPin_2024-11-15_10-10-27.thumb.png.2e14d658e57f4f049653813e9a273504.png

  • Solution
Posted

Let me give you this resource:

 

        https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html

 

You might want to look at the   map to guest (G)    parameter.   Here is the current default setting for that parameter:

          image.png.2f768e4a8a17daa865095e548abeb6c1.png

 

You can try setting this parameter to 'never' and see if that does what you want.

 

You can find all of the Samba configuration settings for your Unraid server with the following command:

testparm -v

(The list is long so you will have scroll up-and-down on your terminal screen.)  

 

Many times login problems are caused by the fact that Windows permits only one SMB login to each server.  And there is no easy way to force a SMB logout from that server without rebooting the Windows client. 

 

(By the way, you might consider that the Windows credential manager is mini password manager for network connections.  It always guarantees a server login with the specified credentials for that server.)  

Posted (edited)

Thanks to @Frank1940 guidance, by configuring "map to guest = Never" in the "Samba extra configuration" my requirements have been fulfilled.

 

 

PixPin_2024-11-16_12-15-53.thumb.png.b90006e4f62d73516cd558d3bd6a2e5b.png

Edited by zeng

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...