Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used smbclient [...] -U once, and I entered some network credentials.

Now when I browse the server with Thunar (xfce file manager), it remembers the credentials I entered. How can I make the computer forget every username/domain/password I ever entered?

Xubuntu 11.10, most recent samba/everything updates.

share|improve this question
As far as I know smbclient doesn't do any caching of credentials, nor does it support anything like gnomekeyring. Are you sure it's not just using your UNIX username? – jelmer Mar 28 '12 at 22:54
@jelmer I'm sorry I didn't make this clear enough. smbclient itself does indeed not remember the credentials by itself it seems, however, after I entered them once in smbclient, Thunar (xfce file manager) remembers them. So the caching is probably done by something other than smbclient. Sorry, the lack of information was my fault. – dialer Mar 31 '12 at 12:59
up vote 3 down vote accepted

I don't have a Linux box booted at the moment, so I can't provide specific instructions - but Gnome (and probably XFCE) maintain a 'keyring' of credentials. Have you tried looking around for your desktop environment's keyring and clearing that?

share|improve this answer

Simply provide the credentials in the command, e.g.

smbclient //server/share -U USERNAME%PASSWORD
share|improve this answer

Your Answer


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.