summaryrefslogtreecommitdiff
path: root/pambase-no-systemd-home/system-auth.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pambase-no-systemd-home/system-auth.patch')
-rw-r--r--pambase-no-systemd-home/system-auth.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/pambase-no-systemd-home/system-auth.patch b/pambase-no-systemd-home/system-auth.patch
new file mode 100644
index 000000000..4b5693abf
--- /dev/null
+++ b/pambase-no-systemd-home/system-auth.patch
@@ -0,0 +1,23 @@
+--- a/etc/pam.d/system-auth 2020-09-14 08:25:11.975622583 +0200
++++ b/etc/pam.d/system-auth 2020-09-14 08:25:11.980977471 +0200
+@@ -4,7 +4,6 @@
+ # Optionally use requisite above if you do not want to prompt for the password
+ # on locked accounts.
+ auth [success=2 default=ignore] pam_unix.so try_first_pass nullok
+--auth [success=1 default=ignore] pam_systemd_home.so
+ auth [default=die] pam_faillock.so authfail
+ auth optional pam_permit.so
+ auth required pam_env.so
+@@ -12,12 +11,10 @@
+ # If you drop the above call to pam_faillock.so the lock will be done also
+ # on non-consecutive authentication failures.
+
+--account [success=1 default=ignore] pam_systemd_home.so
+ account required pam_unix.so
+ account optional pam_permit.so
+ account required pam_time.so
+
+--password [success=1 default=ignore] pam_systemd_home.so
+ password required pam_unix.so try_first_pass nullok shadow
+ password optional pam_permit.so
+