After deploying a Samba server, a common problem with Windows connectivity is that after logging in to a user of samba, the Windows system automatically logs the last logged-in Samba user name and password, so you don't have to reenter your account password the next time you log in. Personally think this is a more dangerous place, especially on the public client, the general user will not be used after the cleanup record operation, it is likely to lead to data disclosure problems.
For this issue, it is common practice on the Internet to run a command under Windows: NET use \\192.168.xxx.xxx\IPC$/delete to delete the default records. But after trying to find that in some cases can not be cleared, the effect is the same as before, that is because Windows will not only have ipc$ this record after logging in, the net use command can see some other remote path records on the samba server, All records must be cleared to re-login to Samba server
So, the specific operation is
1. Running--cmd
2. Input--net Use
3, will see the remote record one by one delete (the destination IP same) used by the command is net use \\192.168.xxx.xxx\xxx/delete
4. Re-login to Samba to run--\\192.168.xxx.xxx
This article is from the "Mycaptain" blog, make sure to keep this source http://yunlingyang.blog.51cto.com/3699079/1539576