summaryrefslogtreecommitdiffstats
path: root/source/x/sddm/pam.d/sddm-autologin
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/sddm/pam.d/sddm-autologin')
-rw-r--r--source/x/sddm/pam.d/sddm-autologin25
1 files changed, 25 insertions, 0 deletions
diff --git a/source/x/sddm/pam.d/sddm-autologin b/source/x/sddm/pam.d/sddm-autologin
new file mode 100644
index 000000000..360239544
--- /dev/null
+++ b/source/x/sddm/pam.d/sddm-autologin
@@ -0,0 +1,25 @@
+#%PAM-1.0
+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_elogind.so
+-session optional pam_gnome_keyring.so auto_start
+-session optional pam_kwallet5.so auto_start
+session include postlogin
+