Hi, I’m running Tumbleweed and I’ve noticed that kwallet is prompting for password after login. I went looking to figure out how to automatically unlock kwallet upon login, however from what I can see it should do that automatically, I have no idea why it’s not.
The password is the same for my user account. pam_kwallet6 is installed, and the pam.d files are referencing pam_kwallet5.so as appropriate (I thought it was odd that it seemed to be looking for the pam_kwallet5 module rather than pam_kwallet6 but confirmed that 5.so seems to be what is installed by pam_kwallet6)
Then, what is the problem? You put that password in the wallet to protect it from others by a mother password. So why do you wonder t is asking for it when needed? It is only because of the application starting direct after login that it asks direct after login. Else it would have asked later when you would start it (or other applications that have their password there) later.
I’m curious why there would be documentation saying kwallet can be unlocked automatically on login, then? Why would an application that starts on login cause issues with that, if the wallet should be unlocked by the login process? Maybe I am misunderstanding?
The items listed on the page you mentioned? What display manager are you using?
We have no idea in which directory you were when you run this command. Only the last part is shown. Also, in general the order of entries matter. Password is remembered in auth entry; show this in full.
I referenced the page and stated that based on that, this should be working. I should have been clearer that I have confirmed all of the items listed on that page match my system. So according to that document it should “just work” but it is not working.
Display manager is SDDM.
This is from /etc/pam.d
Can you clarify what you want me to show in full? Which file in /etc/pam.d are you asking about? I will admit that I’m not certain which of the files in /etc/pam.d comes in to play here, however I’m assuming it’s common-auth.
I do, yes. I’ve noticed something weird about that too—I need to type my password on first login, but after pressing enter, it waits (until a 30 second timeout) for me to touch the fingerprint sensor as well. I haven’t tried to figure that one out yet, because honestly it hasn’t caused me much of an issue, I just need to remember to touch the fingerprint sensor after entering my password on the first login.
Now, this is the default config. I have done nothing to change any of this, aside from adding my fingerprint in to KDE settings. What is the best path forward?
Note also that this only in the last few days started happening. I have had this setup for a couple weeks now and it was “working just fine” until recently, so not sure what has changed.
#%PAM-1.0
#
# This file is autogenerated by pam-config. All manual
# changes will be overwritten!
#
# The pam-config configuration files can be used as template
# for an own PAM configuration not managed by pam-config:
#
# for i in account auth password session session-nonlogin; do \
# rm -f common-$i; sed '/^#.*/d' common-$i-pc > common-$i; \
# done
# for i in account auth password session; do \
# rm -f postlogin-$i; sed '/^#.*/d' postlogin-$i-pc > postlogin-$i; \
# done
#
# Afterwards common-{account, auth, password, session, session-nonlogin}
# and postlogin-{account, auth, password, session} can be
# adjusted. Never edit or delete common-*-pc or postlogin-*-pc files!
#
# WARNING: changes done by pam-config afterwards are not
# visible to the PAM stack anymore!
#
# WARNING: self managed PAM configuration files are not supported,
# will not see required adjustments by pam-config and can become
# insecure or break system functionality through system updates!
#
#
# Session-related modules common to all or login services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of modules that define tasks to be performed
# at the start and end of sessions of *any* kind (both interactive and
# non-interactive
#
session required pam_selinux.so close
session required pam_limits.so
session optional pam_systemd.so
session required pam_unix.so try_first_pass
session optional pam_umask.so
session required pam_selinux.so open
session optional pam_kwallet5.so
session optional pam_env.so
I will try that later today and see if it makes a difference.