{"id":1073,"date":"2026-07-27T13:25:21","date_gmt":"2026-07-27T11:25:21","guid":{"rendered":"https:\/\/jakobsens.net\/?p=1073"},"modified":"2026-07-27T13:25:21","modified_gmt":"2026-07-27T11:25:21","slug":"kde-wallet-ask-for-password-when-using-gdm","status":"publish","type":"post","link":"https:\/\/jakobsens.net\/?p=1073","title":{"rendered":"KDE Wallet ask for password when using GDM"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">You can have <strong>KDE Wallet unlock automatically when logging into KDE Plasma through GDM<\/strong>. The preferred method is PAM: GDM passes your login password to <code>pam_kwallet5<\/code>, which unlocks the default <code>kdewallet<\/code>. KDE&#8217;s documentation confirms this is the intended mechanism. (<a href=\"https:\/\/wiki.archlinux.org\/title\/KDE_Wallet?utm_source=chatgpt.com\">Arch Linux Wiki<\/a>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Assuming you&#8217;re using <strong>Plasma 6<\/strong>, do the following.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Make sure KWallet PAM is installed<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">On Ubuntu\/Kubuntu\/Debian:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install libpam-kwallet5<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">On Arch:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pacman -S kwallet-pam<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">On Fedora:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf install kf5-kwallet-pam<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. Check your wallet<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kwalletmanager<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Your main wallet should be named:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kdewallet<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Most importantly, its password must be <strong>the same as your Linux login password<\/strong>. PAM needs this because it uses the password entered into GDM to unlock the wallet. (<a href=\"https:\/\/wiki.archlinux.org\/title\/KDE_Wallet?utm_source=chatgpt.com\">Arch Linux Wiki<\/a>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If necessary, in KWallet Manager use <strong>Change Password<\/strong> and set it to your current Linux password.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Configure GDM PAM<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">With GDM, the relevant PAM configuration is normally:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/pam.d\/gdm-password\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">First check whether KWallet is already configured:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -n kwallet \/etc\/pam.d\/gdm-password<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For <strong>Plasma 6<\/strong>, you want KWallet PAM involved in both authentication and session startup. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>auth     optional    pam_kwallet5.so\nsession  optional    pam_kwallet5.so auto_start kwalletd=\/usr\/bin\/ksecretd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>ksecretd<\/code> part is important on current Plasma 6 systems; older Plasma versions used <code>kwalletd5<\/code>. (<a href=\"https:\/\/wiki.archlinux.org\/title\/KDE_Wallet?utm_source=chatgpt.com\">Arch Linux Wiki<\/a>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Don&#8217;t blindly replace your <code>gdm-password<\/code> file. The exact placement of these lines depends on your distribution&#8217;s existing PAM stack.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Reboot and test<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After rebooting, log in through GDM using your <strong>password<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>qdbus6 org.kde.kwalletd6<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">or check the processes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ps aux | grep -E 'kwallet|ksecret'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can also open KWallet Manager. <code>kdewallet<\/code> should already be open without asking for its password.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">One important limitation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If by &#8220;login automatic&#8221; you mean <strong>GDM autologin<\/strong>, where you don&#8217;t type a password at all, that&#8217;s a different situation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">KWallet PAM normally needs the login password to decrypt the wallet. If GDM automatically logs you in without providing that password, PAM has no password available with which to unlock <code>kdewallet<\/code>. The same problem occurs with fingerprint-only login. (<a href=\"https:\/\/wiki.archlinux.org\/title\/KDE_Wallet?utm_source=chatgpt.com\">Arch Linux Wiki<\/a>)<br><br>Source: ChatGPT &#8211; Ask: How to get KDE wallet service to login automatic when using GDM?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can have KDE Wallet unlock automatically when logging into KDE Plasma through GDM. The preferred method is PAM: GDM passes your login password to pam_kwallet5, which unlocks the default kdewallet. KDE&#8217;s documentation confirms this is the intended mechanism. (Arch Linux Wiki) Assuming you&#8217;re using Plasma 6, do the following. 1. Make sure KWallet PAM [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1073","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts\/1073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1073"}],"version-history":[{"count":1,"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts\/1073\/revisions"}],"predecessor-version":[{"id":1075,"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts\/1073\/revisions\/1075"}],"wp:attachment":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}