summaryrefslogtreecommitdiffstats
path: root/kde/post-install/sddm-qt5/pam.d/sddm-autologin
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-05-26 13:25:55 +0200
committer Eric Hameleers <alien@slackware.com>2020-05-26 13:25:55 +0200
commit3c5eca74e04fad95927a07e13eec0744f407584d (patch)
tree4361c2ee886009ce369363cea0d3d54949f4eae8 /kde/post-install/sddm-qt5/pam.d/sddm-autologin
parent7db7710238ce4440d28d09ec56eea8122c77a37f (diff)
downloadktown-3c5eca74e04fad95927a07e13eec0744f407584d.tar.gz
ktown-3c5eca74e04fad95927a07e13eec0744f407584d.tar.xz
SDDM: updated PAM configs allow root login
Diffstat (limited to 'kde/post-install/sddm-qt5/pam.d/sddm-autologin')
-rw-r--r--kde/post-install/sddm-qt5/pam.d/sddm-autologin36
1 files changed, 23 insertions, 13 deletions
diff --git a/kde/post-install/sddm-qt5/pam.d/sddm-autologin b/kde/post-install/sddm-qt5/pam.d/sddm-autologin
index fe410bb..fd926ef 100644
--- a/kde/post-install/sddm-qt5/pam.d/sddm-autologin
+++ b/kde/post-install/sddm-qt5/pam.d/sddm-autologin
@@ -1,14 +1,24 @@
#%PAM-1.0
-auth required pam_env.so
-auth include system-auth
-auth include postlogin
--auth optional pam_gnome_keyring.so
--auth optional pam_kwallet5.so
-account include system-auth
-password include system-auth
-session include system-auth
-session required pam_loginuid.so
-session optional pam_ck_connector.so nox11
-session include postlogin
--session optional pam_gnome_keyring.so auto_start
--session optional pam_kwallet5.so auto_start
+auth requisite pam_nologin.so
+auth required pam_env.so
+auth required pam_shells.so
+
+# Uncomment this line to restrict autologin to users with a UID greater
+# than 999 (in other words, don't allow autologin for root):
+#auth required pam_succeed_if.so uid >= 1000 quiet
+
+auth required pam_permit.so
+-auth optional pam_gnome_keyring.so
+-auth optional pam_kwallet5.so
+
+account include system-auth
+
+password include system-auth
+
+session substack system-auth
+session required pam_loginuid.so
+session optional pam_ck_connector.so nox11
+-session optional pam_gnome_keyring.so auto_start
+-session optional pam_kwallet5.so auto_start
+session include postlogin
+