Purge cached credentials used to access a Samba server
I have configured an Ubuntu Server with Samba in a workgroup. When I opened Computer on a Windows 7 Pro client, I saw the Ubuntu server listed under "Network". I accessed the Ubuntu share by typing \\UbuntuServer\share in the location bar and it asked me for the user credentials on the Ubuntu server as it should. I connected successfully. I did not create a mapped drive via "net use ..." etc.
I closed the share then opened Computer again and the Ubuntu server and it's share were visible. The server and share details were cached, along with the username and password. How do I remove them from the Windows 7 client? I've tried:
1. Credential Manager in Control Panel, but nothing was listed there
2. run rundll32.exe keymgr.dll, KRShowKeyMgr showed nothing stored
3. net use * /delete returned "There are no entries in the list" (I know I didn't map a drive but some sites suggested trying this)
4. net session returned "There are no entries in the list"
5. I've disabled Network Discovery then re-enabled it but the Ubuntu server and it's shared folder popped up again
Surely this is a security flaw? If I go to someone's PC and access the share by entering my credentials, there must be a way of purging them, otherwise the user would be able to access everything in the share to which I had access from their PC.