{"id":585,"date":"2025-07-13T17:30:55","date_gmt":"2025-07-13T15:30:55","guid":{"rendered":"https:\/\/it4home.dk\/?p=585"},"modified":"2025-07-13T18:02:23","modified_gmt":"2025-07-13T16:02:23","slug":"windows-10-11-and-smb-guest-access","status":"publish","type":"post","link":"https:\/\/it4home.dk\/index.php\/2025\/07\/13\/windows-10-11-and-smb-guest-access\/","title":{"rendered":"Windows 10\/11 and SMB guest access"},"content":{"rendered":"<div class=\"pdfprnt-buttons pdfprnt-buttons-post pdfprnt-top-right\"><a href=\"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/585?print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\" ><\/a><a href=\"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/585?print=print\" class=\"pdfprnt-button pdfprnt-button-print\" target=\"_blank\" ><img decoding=\"async\" src=\"https:\/\/it4home.dk\/wp-content\/plugins\/pdf-print\/images\/print.png\" alt=\"image_print\" title=\"Print Content\" \/><\/a><\/div>\n<p class=\"wp-block-paragraph\">Windows SMB change and how to lock down your Raspberry Pi with SMB3 encryption:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Windows 10\/11 and SMB guest access<\/strong><br>Starting with Windows 10 version 1709 (Fall Creators Update) and all Windows 11 releases, Microsoft disabled unauthenticated \u201cguest\u201d access over SMB2 and SMB3 by default to block insecure, unencrypted logons (<a href=\"https:\/\/support.mkstechnology.com\/support\/solutions\/articles\/8000089503-cannot-connect-to-an-smb2-network-share-form-windows-server-2019?utm_source=chatgpt.com\">MKS Technology Inc<\/a>)<br>URL: <a href=\"https:\/\/support.microsoft.com\/en-us\/help\/4046019\/guest-access-in-smb2-disabled-by-default-in-windows-10-and-windows-server-2016\">https:\/\/support.microsoft.com\/en-us\/help\/4046019\/guest-access-in-smb2-disabled-by-default-in-windows-10-and-windows-server-2016<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Configuring your Raspberry Pi for SMB3-only, encrypted shares<\/strong><br>Samba \u2265 4.2 (your 4.17.12 build included) fully supports SMB 3.x and on-the-wire encryption (<a href=\"https:\/\/serverfault.com\/questions\/913504\/samba-smb-encryption-how-safe-is-it?utm_source=chatgpt.com\">Server Fault<\/a>)<br>URL: <a href=\"https:\/\/serverfault.com\/questions\/913504\/samba-smb-encryption-how-safe-is-it\">https:\/\/serverfault.com\/questions\/913504\/samba-smb-encryption-how-safe-is-it<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Replace your <code>\/etc\/samba\/smb.conf<\/code> with this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;global]\n   workgroup = WORKGROUP\n   netbios name = raspberrypi\n   server string = Raspberry Pi SMB3 Encrypted\n   security = user\n   map to guest = never\n   usershare allow guests = no\n   guest account = nobody\n\n   server min protocol = SMB3\n   server max protocol = SMB3\n   client min protocol = SMB3\n   client max protocol = SMB3\n   smb encrypt = required\n\n&#91;data]\n   comment = Encrypted SMB3 Share\n   path = \/data\n   browseable = yes\n   writable = yes\n   valid users = pi\n   create mask = 0775\n   directory mask = 0775\n<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Prepare the share directory and permissions: <code>sudo mkdir -p \/data sudo chown pi:pi \/data sudo chmod 775 \/data<\/code><\/li>\n\n\n\n<li>Add <code>pi<\/code> as an SMB user: <code>sudo smbpasswd -a pi<\/code><\/li>\n\n\n\n<li>Apply changes: <code>sudo systemctl restart smbd<\/code><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">This forces <strong>only SMB 3.x<\/strong> connections with <strong>required encryption<\/strong>, and only user <code>pi<\/code> can connect (<a href=\"https:\/\/serverfault.com\/questions\/895570\/how-to-configure-samba-to-work-with-windows-10-1709?utm_source=chatgpt.com\">Server Fault<\/a>)<br>URL: <a href=\"https:\/\/serverfault.com\/questions\/895570\/how-to-configure-samba-to-work-with-windows-10-1709\">https:\/\/serverfault.com\/questions\/895570\/how-to-configure-samba-to-work-with-windows-10-1709<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Verifying your setup<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Run <code>testparm<\/code> on the Pi to check for syntax errors.<\/li>\n\n\n\n<li>On Windows, open PowerShell and run: <code>Get-SmbConnection<\/code> You should see <strong>Dialect 3.1.1<\/strong>, confirming an encrypted SMB 3 session (<a href=\"https:\/\/www.samba.org\/samba\/docs\/4.15\/man-html\/smb.conf.5.html?utm_source=chatgpt.com\">samba.org<\/a>)<br>URL: <a href=\"https:\/\/www.samba.org\/samba\/docs\/4.15\/man-html\/smb.conf.5.html\">https:\/\/www.samba.org\/samba\/docs\/4.15\/man-html\/smb.conf.5.html<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">With these steps, your Windows 10\/11 systems stay locked against guest shares, and your Raspberry Pi serves its data only over encrypted SMB 3 connections.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows SMB change and how to lock down your Raspberry Pi with SMB3 encryption: Windows 10\/11 and SMB guest accessStarting with Windows 10 version 1709 (Fall Creators Update) and all Windows 11 releases, Microsoft&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":592,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[7,11,31,4],"tags":[],"class_list":["post-585","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry","category-security","category-server","category-windows"],"_links":{"self":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/comments?post=585"}],"version-history":[{"count":1,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/585\/revisions"}],"predecessor-version":[{"id":587,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/585\/revisions\/587"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/media\/592"}],"wp:attachment":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/media?parent=585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/categories?post=585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/tags?post=585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}