Skip to content

Instantly share code, notes, and snippets.

@dolt131943
Created September 16, 2017 01:03
Show Gist options
  • Save dolt131943/c3c05a20583397e4c27ad05d57121841 to your computer and use it in GitHub Desktop.
Save dolt131943/c3c05a20583397e4c27ad05d57121841 to your computer and use it in GitHub Desktop.
upgrade to Debian 9 Samba 4.5.8 Win XP unable access the samba share. alway pop up auth info input dialog.

升级到或安装了Debian9,Samba升级到了4.5.8。发现Ubuntu能用的Samba共享无法被WinXp使用,也无法被我的一些智能设备识别。

经过分析研究,估计各种尝试了有8小时之久,原因很简单,通过问题分析找到可能原因,同时在Man smb.conf里看到相关选项的说明,最后最简单的方案就是下面这句:

ntlm auth (G)

           This parameter determines whether or not smbd(8) will attempt to authenticate users using the NTLM encrypted password response. If disabled, either the lanman
           password hash or an NTLMv2 response will need to be sent by the client.

           If this option, and lanman auth are both disabled, then only NTLMv2 logins will be permited. Not all clients support NTLMv2, and most will require special
           configuration to use it.

           The primary user of NTLMv1 is MSCHAPv2 for VPNs and 802.1x.

           The default changed from "yes" to "no" with Samba 4.5.

           Default: ntlm auth = no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment