win10 nas

Windows10 沒法訪問 CIFS/SMB/Samba 網絡共享

Windows 10 正式版發佈有一段時間了,小夥伴們在使用中是否發現 Windows 10 沒法正常訪問 FreeNAS 的 CIFS 共享呢?這篇文章就告訴你們如何解決這個問題。promise

 

故障重演

在Windows 10網絡中,可以看到FreeNAS主機。安全

 

雙擊FreeNAS主機彈出錯誤提示「\\freenas 沒法訪問。你可能沒有權限使用網路資源。請與這臺服務器的管理員聯繫以查明你是否有訪問權限。此帳戶並未獲得從這個工做站登錄的受權」服務器


癥結追溯

出現這個問題的最主要緣由是Windows10操做系統但願使你的電腦「更安全」,從而禁止你以匿名身份訪問遠程的文件服務器,微軟官方解釋是這樣的:網絡

The security change is intended to address a weakness when using guest access. While the server may be fine not distinguishing among clients for files (and, you can imagine in the home scenario that it doesn’t matter to you which of your family members is looking at the shared folder of pictures from your last vacation), this can actually put you at risk elsewhere. Without an account and password, the client doesn’t end up with a secure connection to the server. A malicious server can put itself in the middle (also known as the Man-In-The-Middle attack), and trick the client into sending files or accepting malicious data. This is not necessarily a big concern in your home, but can be an issue when you take your laptop to your local coffee shop and someone there is lurking, ready to compromise your automatic connections to a server that you can’t verify. Or when your child goes back to the dorm at the university. The change we made removes the ability to connect to NAS devices with guest access, but the error message which is shown in build 9926 does not clearly explain what happened. We are working on a better experience for the final product which will help people who are in this situation.app

解決方法

微軟的推薦作法是建議你給NAS服務器設置帶身份認證的共享,或者使用家庭組來共享文件。在這裏咱們先感謝微軟的關心,不過咱們不須要,用不用匿名共享是咱們的事情,是否有風險咱們也能本身承擔,請不要讓咱們爲難。編輯器

來吧,小夥伴,讓咱們開啓匿名身份訪問CIFS共享:ui

第一步:打開註冊表編輯器this

使用快捷鍵(win + R)打開運行窗口,輸入regedit。spa

 

第二步:定位目標操作系統

依次找到 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters

第三步:添加新值

右鍵點擊 Parameters ,彈出菜單中選擇 新建 DWORD (32位) 值

 

第四步:設置值

新建項命名爲 AllowInsecureGuestAuth ,將該項的值設置爲 1

 

你如今已經能夠訪問CIFS匿名共享了,若是系統彈出登陸對話框,用戶名隨便輸入 everyone 或 nobody ,密碼留空,登陸便可!

相關文章
相關標籤/搜索