Article Title: Change the user identity in Windows to access the Samba server. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
When the mongodows client accesses the Samba server, a common phenomenon is that after a connection to the Samba server is established, the authentication dialog box is no longer displayed when the server is accessed again, in this way, the user identity cannot be changed. The reason for this is that the mechanism problem of Windows itself is more specifically a problem with the SMB service. Because the NETBIOS service is connection-oriented, after the customer establishes a connection with the Samba server, this connection is always active for a period of time. Therefore, when a user accesses the server again, the user uses the previous identity without further authentication.
Solution:
Net use \ 192.168.1.102 \ IPC $/delete deletes the last connection.
After the shared connection is successfully deleted, you can change the user identity to access the Samba server.