win7, win10 accessing the shared directory of Samba prompts "login failure: user name or password error" final solution

forward:

The problem is that we just built the SMB share, there is no problem in the configuration, and it is already in normal use. During the large-scale promotion, some win7 and win10 users reported that the login failed: the username or password was wrong.
insert image description here
insert image description here
Solutions:

1. First enable log log 2 in the configuration file
insert image description here
, and then log in with the problematic computer to generate related error logs. You can check it in the specified log directory
insert image description here
. Obvious error, the red box area, the login trust is empty, the password type is NTLMv1
insert image description here
4, seeing here we judge that there should be a problem with the authentication of samba to windows, some computers and samba have different default authentication types, here we are in the configuration file Open this ntlm type and try
insert image description here
5, then save and restart the samba server, it can be used normally after testing

Summary: The security of ntlm certification is not very high, so slowly with the upgrade of the samba version, it is not enabled by default, but some computer systems still use this type of network access.

Guess you like

Origin blog.csdn.net/weixin_44200830/article/details/113173113