Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a Linux samba server and have explicitly listed users that can access the folder.

I have successfully congfigured Samba to require a username and password when accessing the share from windows (using the smbpasswd, etc.).

But now I want to force clear the auth cache on the windows machine. Such as when I go to a colleague's computer, I use my account to access a file in the protected share, but then before I leave his computer, i'll want to make sure the authorization cache is cleared so he cannot access that folder with my credentials.

I found the command to use in the windows command prompt on google a couple of weeks ago but silly me I didn't save it...

Hope someone can help, thanks!

Oh, Samba is configured as a workgroup and not a domain (if that helps) - so windows users do NOT log into a domain on start up.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

How about this:

net session \\samba.server.ip.address /delete

You can also use:

net use

To give a list of active sessions and to ensure that you've deleted them afterwards.

share|improve this answer
    
A session does not exist with that computer name. But it exists obviously. Tried both IP and name. –  tomasb Nov 12 at 13:45

Try this

Control Panel\All Control Panel Items\Credential Manager

Click on the arrow beside the cred you wish to delete

than click on remove from vault

share|improve this answer
1  
This helped me where the accepted answer did not. Thank you! –  Aaron Adams Jul 1 at 20:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.