I have mounted an encrypted disk by selecting it in Nemo (1.1.2), then typing a password. I can unmount the disk using Nemo, but now it can be remounted without requiring the password.

Probably there was a "remember" option such as demonstrated in this question.

Regardless of what I selected when I initially mounted, now I want Nemo to forget the password. Is there a way to do this aside from logging out?

This question may also apply to Nautilus (Nemo is a fork).

  • Note: I was hoping that there would be a nice way to do this from a GUI, but I have searched Nemo's menus, system settings, and the "Seahorse" Passwords and Keys utility -- all to no avail. – nobar May 5 '13 at 23:00
  • I went years without this bothering me, but it got me again in Ubuntu MATE 18.04. Although, I think it is called caja now. – nobar Nov 22 '18 at 3:35

If you really mean "forget the password" it probably already did within microseconds of you entering it.

Persistence of authentication through the login session is maintained in Ubuntu-ish systems by ssh-agent and gnome-keyring-daemon. By their nature of operation (non-invertable hashing) it may be fundamentally impossible to selectively remove one authentication.

As you note, logging out destroys the cached authentication, ssh_agent -k would kill the cache without logging out (but other things would fail to authenticate too).

This looks like you can have single-sign-on ease or fine-grained authentication control, pick one.

  • "forget the password" is probably not technically correct, but it agrees with the message provide (see the link in my question). – nobar May 5 '13 at 22:52
  • I had no luck with ssh-agent -k, but the following did work: killall gnome-keyring-daemon. Thanks for the hint. – nobar May 5 '13 at 22:52

Issue the following, or something equivalent...

killall gnome-keyring-daemon

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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