17

How to reset a password from kwallet?

I've read about a kwallet GUI that could be installed from synaptic, but I found nothing. Actually, it shows a GUI asking me the password, so is must have somewhere where I can change this password..

23

If Kubuntu automatically created a wallet and it has no known password, it may automatically open during system login, and setting a password may then be possible.

If the wallet is closed, if you do not know the current password, it is not possible to "reset" it (this would be a security problem). It is only possible to remove the entire wallet and then kwallet should ask you to create a new password.

In order to delete the wallet, delete the file

/home/<user name>/.kde/share/apps/kwallet/kdewallet.kwl

If you do know the current password, or have it already open, then see Vaibhav Kaushal's answer below.

  • security problem? So why does "sudo" exists? anyway, thanks! – Tom Brito Jan 19 '11 at 11:17
  • 3
    This just isn't true: Vaibhav Kaushal's answer below gives the correct steps to change a KWallet password. – Richard Turner Mar 19 '13 at 15:00
  • @TomBrito Do you really think anybody with root access should be able to open your wallet? I believe this would be a serious security problem – txwikinger Mar 21 '13 at 3:19
  • 3
    For new versions of KDE: 4.14.16 is in: /home/<user name>/.local/share/kwalletd/kdewallet.kwl – Toni Gamez May 2 '16 at 17:51
  • I tried to correct this answer, before I was logged in: askubuntu.com/review/suggested-edits/787224 – Luke Stanley Dec 18 '17 at 10:54
9

To change the password for KDE wallet, you need to first have it running. If it is not running, start it.

In the system tray, you would find its icon. Click on the icon (left-click, not right-click). A new window would open with the list of wallets (by default there is just 1). Right click the wallet and you have the option to change the password.

To delete the wallet, you can follow what txwikinger said.

  • 2
    How can you do this when you do not know the initial password to open the wallet? – txwikinger Mar 21 '13 at 3:18
  • It did not ask me the password! :o It does not do that now either! – Vaibhav Kaushal Mar 21 '13 at 8:09
  • 1
    Well.. but that is what the question asks about, as far as I understand, and that is what I answered. If you have set password protecting kwallet, that you do not know, you have no choice, but delete it, since otherwise it would be possible for any admin with root access to get at your passwords. – txwikinger Mar 21 '13 at 13:11
  • If the wallet icon is missing, you can use System Settings -> Personalization -> KDE Wallet -> Show manager in system tray. From there you can also run Wallet Manager. – Tomasz Gandor Mar 21 at 9:33
9

Since this question was originally answered, KDE has apparently changed, and I'd like to update this article to keep it useful.

As has been pointed out, (through no fault of the O.P.) the original question was indeed unclear: it asked how to reset password but did not supply the motivation:

  1. Remembered password, just resetting

    Do I remember my old KDE Wallet password, but I just want to reset (i.e., "update") it, perhaps because it has gotten old or I just want to make a better one? (thus Vaibhav Kaushal's answer)

  2. Lost password

    Did I lose my KDE Wallet password, and therefore the wallet must be deleted and re-created? (thus txwikinger's answer)

Update known KDE password

If you do have a KDE Wallet icon showing in your system tray, Vaibhav Kaushal's answer will work. But this system tray icon does not always show. (You can set that behavior after step 2 below, though, if you like.)

  1. KDE Launcher icon -> Settings -> System Settings (or systemsettings5 from the command prompt)
  2. Personalization -> Account Details -> KDE Wallet
  3. Way down in lower right (you may need to scroll down) click on the button, "Launch Wallet Manager" (or again, perhaps, just from the command prompt, type kdewalletmanager5)
  4. Now you are in the KDE Wallet Manager.
  5. Assuming you have only one (default) wallet, that wallet will be called kdewallet. That is the one that should be open in your KDE Wallet Manager now. If not, close any other wallets and open kdewallet.
  6. Click on "Change Password" button to the right.
  7. Continue with steps 9-12 in section below.

Recreate KDE wallet because of lost password

txwikinger's method of deleting the wallet (by deleting the kdewallet.kwl file) no longer works (at least as of my Kubuntu 15.10 / KDE 5). That is, (even if kdewallet is running) deleting that .kwl file doesn't result in the kde wallet service now asking you for a new password. For some reason (at least for me), the system just continues to ask for the (old) password, as if nothing changed. A bit frustrating.

Nowadays it appears as if the effective way to completely delete a wallet -- so that now KDE Wallet Services does ask you for a new password for the new kdewallet -- is to follow these steps:

  1. First do steps 1 through 5 above
  2. File -> Delete Wallet, and in the pop-up window, click 'Delete'.
  3. File -> New Wallet
  4. Name: same as before, kdewallet
  5. Put in your new password twice, hit Enter. You're good to go.
  6. Close wallet manager and KDE system settings.
  7. Just a reminder: The next time you try to open something needing the wallet, you may be asked to supply the password again once, each time the KDE Wallet services is re-initiated.
  8. User tip: Now get a good OFFLINE password manager. I like KeepassX which works in Linux, Mac, Win. Put your KDE Wallet password in there. Back up the password manager's file regularly (I suggest a zero-knowledge cloud such as SpiderOak over Dropbox).
2

Now in 2018 you can just download kwalletmanager5 by typing

sudo apt install kwalletmanager

That manager allows you to create and delete your wallets as well as editing the password, provided you know the old password.

0

When I encountered this error on Kubuntu 14.04 a year ago I deleted kdewallet.kwl manually and like Androclus it never prompted me for a new password.

Now, after a fresh install of K16.04, experiencing the same issue, instead of deleting from the command line I opened the GUI for KWalletManager and deleted all of my wallets (not that I had to.)

After doing so I attempted a wifi connection and was prompted for a new password.

0

I solved this one out by making (from KWalletManager) a new wallet named 'afk' and replacing .salt file from the existing wallet, named 'kdewallet' with .salt file of newly created wallet named 'afk'.

So

cd /home/afk/.kde4/share/apps/kwallet 
mv kdewallet.salt .kdewallet.salt;cp afk.salt kdewallet.salt

And now the existing wallet named 'kdewallet' has the password for newly created 'afk' wallet.

I've deleted the wallet named afk and everything seems to be just fine.

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.