2010年12月3日 星期五

windows 7 存取 samba

資料來源:http://blog.the.tw/2009/12/windows-7-samba.html

windows 7 存取 samba

有些使用較舊版samba架設的檔案分享功能,windows 7 (win7) 也許無法存取,
一直跳出要你輸入帳號密碼,即使輸入正確還是相同的結果。
因為驗證機制不相容才會有此種情形發生,那要如何解決呢?
以下教法只針對client端的作業系統去做修改:
1.家用進階版 以下 ( Home Premium , Home Basic , Starter )
修改regedit
在 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] 下
新增 LmCompatibilityLevel 值1
擷取
註: LmCompatibilityLevel 數字的意義
0=Send LM & NTLM responses  (never uses NTLMv2)
1=Send LM & NTLM - use NTLMv2 session security if negotiated
2=Send NTLM response only, use NTLMv2 if server supports it.
3=Send NTLMv2 response only, if DC accept LM, NTLM and NTLMv2 auth, use NTLMv2 security if supported.
4=Send NTLMv2 response only, if DC refuse LM, accept NTLM or NTLMv2 auth, use NTLMv2 security if supported.
5=Send NTLMv2 response only, if DC,refuse LM & NTLM and only accept NTLMv2 auth, use NTLMv2 security if supported.
2.專業版 以上 ( Professional , Enterprise , Ultimate )
開啟命令提示列,執行secpol.msc (安全性設定主控台)
image
Security Settings –> Local Policies –> Security Options  
修改 Network security: LAN Manager authentication level 這Policy的設定
image

選擇此值:Send LM & NTLM - use NTLMv2 session security if negotiated。
按OK後,再試試是否可以存取samba分享的目錄
image
image

Send LM & NTLM - use NTLMv2 session security if negotiated: Clients use LM and NTLM authentication and use NTLMv2 session security if the server supports it; domain controllers accept LM, NTLM, and NTLMv2 authentication.

沒有留言: