aboutsummaryrefslogtreecommitdiff
path: root/x11/lightdm/files/patch-data_pam_lightdm-autologin
blob: a6eb4874c705311a7fbabbcb10c5b6de1a064b4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- data/pam/lightdm-autologin.orig	2022-07-04 03:28:22 UTC
+++ data/pam/lightdm-autologin
@@ -1,22 +1,18 @@
 #%PAM-1.0
-# Block login if shell in nologin or false
-auth      required pam_succeed_if.so shell notin /sbin/nologin:/usr/sbin/nologin:/bin/false:/usr/bin/false
-
 # Block login if they are globally disabled
-auth      required pam_nologin.so
+account      required pam_nologin.so
 
 # Load environment from /etc/environment and ~/.pam_environment
-auth      required pam_env.so
+#auth      required pam_env.so
 
 # Allow access without authentication
 auth      required pam_permit.so
 
 # Stop autologin if account requires action
-account   required pam_unix.so
+account   required pam_unix.so        no_warn try_first_pass
 
 # Can't change password
 password  required pam_deny.so
 
 # Setup session
-session   required pam_unix.so
-session   optional pam_systemd.so
+session   required pam_permit.so