mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-02 04:37:49 +02:00
Prevent password-based SDDM logins from creating an encrypted login keyring
This commit is contained in:
@@ -14,5 +14,10 @@ Current=omarchy
|
||||
EOF
|
||||
fi
|
||||
|
||||
# Prevent password-based SDDM logins from creating an encrypted login keyring
|
||||
# (which conflicts with the passwordless Default_keyring used for auto-unlock)
|
||||
sudo sed -i '/-auth.*pam_gnome_keyring\.so/d' /etc/pam.d/sddm
|
||||
sudo sed -i '/-password.*pam_gnome_keyring\.so/d' /etc/pam.d/sddm
|
||||
|
||||
# Don't use chrootable here as --now will cause issues for manual installs
|
||||
sudo systemctl enable sddm.service
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
echo "Prevent SDDM password login from creating encrypted login keyring"
|
||||
|
||||
# Remove the encrypted login keyring if it exists (it conflicts with the passwordless Default_keyring)
|
||||
rm -f "$HOME/.local/share/keyrings/login.keyring"
|
||||
|
||||
# Remove gnome-keyring auth/password lines from sddm PAM so password-based logins
|
||||
# don't create an encrypted login keyring. Keep the session line to start the daemon,
|
||||
# which will auto-unlock the passwordless Default_keyring.
|
||||
sudo sed -i '/-auth.*pam_gnome_keyring\.so/d' /etc/pam.d/sddm
|
||||
sudo sed -i '/-password.*pam_gnome_keyring\.so/d' /etc/pam.d/sddm
|
||||
Reference in New Issue
Block a user