I have a pretty old version of Samba Server installed on a Linux machine. Which Linux normally doesn't require "WORKGROUP" or "SAMBA" or any domain name to log in. Normal username and password should get the job done.
So I have a CentOS 7.1 installed with Samba version 4.4 and I use smbclient to log in, which worked great.
And now I have a clean installed CentOS 7.6 (1810) with samba version 4.8 installed. The
smb.conf is completely identical, but when I need to use smbclient to log in the Samba Server of the Linux machine, it shows:
Enter SAMBA\username's password:
So I entered the same password which I used on CentOS 7.1, and it returns:
tree connect failed: NT_STATUS_WRONG_PASSWORD
So when I use the same smbclient command to connect from CentOS 7.1 with an older Samba version 4.4, it prompts:
Enter username's password:
And then I entered the same password and it lets me in.
There might be 2 ways to solve the problem.
Downgrade the Samba version to 4.4. But I don't know how to do it.
Disable using "WORKGROUP" or something like that completely. But I don't know how to do it either.