View previous topic :: View next topic |
Author |
Message |
Fulgurance Veteran
Joined: 15 Feb 2017 Posts: 1234
|
Posted: Tue Oct 15, 2024 2:13 pm Post subject: Kwallet always prompt for password (custom Linux system) |
|
|
Hi guys, I am Fulgurance from the project ISM: https://github.com/Fulgurance/ISM.
I made from scratch my package manager that can compile all from scratch and I am working on my linux distribution I plan to name Horizon Linux.
I integrated Openrc as primary init system.
Actually I am facing a minor, but annoying problem.
When I start a plasma session, kwallet always ask for the password. How can I configure properly kwallet to make sure it use automatically the user password without asking again and again to open the wallet ?
These are the configuration files I have:
/etc/pam.d/sddm
Code: | zohran [ ~ ]$ cat /etc/pam.d/sddm
auth requisite pam_nologin.so
auth required pam_env.so
-auth optional pam_kwallet5.so
auth required pam_succeed_if.so uid >= 1000 quiet
auth include system-auth
account include system-account
password include system-password
session required pam_limits.so
session include system-session
-session optional pam_kwallet5.so auto_start |
/etc/pam.d/sddm-autologin
Code: | zohran [ ~ ]$ cat /etc/pam.d/sddm-autologin
auth requisite pam_nologin.so
auth required pam_env.so
auth required pam_succeed_if.so uid >= 1000 quiet
auth required pam_permit.so
-auth optional pam_kwallet5.so
account include system-account
password required pam_deny.so
session required pam_limits.so
session include system-session
-session optional pam_kwallet5.so auto_start |
/etc/pam.d/sddm-greeter
Code: | zohran [ ~ ]$ cat /etc/pam.d/sddm-greeter
auth required pam_env.so
auth required pam_permit.so
account required pam_permit.so
password required pam_deny.so
session required pam_unix.so
-session optional pam_systemd.so |
The plasma version used:
Code: | zohran [ ~ ]$ ism software -se plasma-desktop
Port: @KdeSoftwares-Main
Name: Plasma-Desktop
Description: The Plasma KDE workspace
Available(s) architecture(s): x86_64
Website: https://kde.org/plasma-desktop/
Available(s) Version(s): 5.27.7
Installed Version(s):
| 5.27.7 { Linux-Pam Bluedevil NetworkManager ModemManager Pulseaudio Phonon-Backend-Gstreamer Phonon-Backend-Vlc Sddm Emojier }
Unique dependencies setted: None
Current options setted:
[*] Linux-Pam: Enable linux-pam support
[*] Bluedevil: Enable bluedevil support
[*] NetworkManager: Enable networkmanager support
[*] ModemManager: Enable modemmanager support
[*] Pulseaudio: Enable pulseaudio support
[*] Phonon-Backend-Gstreamer: Enable gstreamer backend support
[ ] Phonon-Backend-Vlc: Enable vlc backend support
[*] Sddm: Enable sddm support
[ ] Emojier: Enable emojier support
Current local patches: None
|
Let me know if you need more information related to my system.
And this is the screenshot of the bug: https://i.ibb.co/gPmMVJj/Screenshot-20241015-151217.png
As you can see, my system run already on my laptop <3 _________________ My actual project: https://github.com/Fulgurance/ISM
Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path |
|
Back to top |
|
|
octonoodle n00b
Joined: 21 Feb 2024 Posts: 8
|
Posted: Wed Oct 16, 2024 1:13 am Post subject: |
|
|
It's been a while since I tried to do this, but from what I remember, you can't use auto login, the wallet has to be set to the default one it creates, not a custom named one ( if you have another then the default one has to be set as the default in the config) and it has to have the same password as the users login. Hopefully this helps or gives some pointers to work from. |
|
Back to top |
|
|
Fulgurance Veteran
Joined: 15 Feb 2017 Posts: 1234
|
Posted: Wed Oct 16, 2024 1:03 pm Post subject: |
|
|
Thanks for your answer. So I saw that too, but this is when you do it graphically.
Because I work on my package manager, I search a way to do it before the user run any graphical environment. I guess there is something to configure, like a pam file, a configuration file or a cli to run. It's just I don't know which one.
For example, if you install a Gentoo system with plasma, you never need to set a kwallet password. So how they did that ? Because I found nothing in there ebuilds _________________ My actual project: https://github.com/Fulgurance/ISM
Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path |
|
Back to top |
|
|
Fulgurance Veteran
Joined: 15 Feb 2017 Posts: 1234
|
Posted: Mon Oct 28, 2024 11:05 am Post subject: |
|
|
I finally solved the issue. The configuration is fine. The problem was the software socat was missing . It's a runtime dependency for kwallet-pam _________________ My actual project: https://github.com/Fulgurance/ISM
Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path |
|
Back to top |
|
|
|