2022-03-20 13:19:37 +01:00
|
|
|
#%PAM-1.0
|
|
|
|
|
|
|
|
auth required pam_faillock.so preauth
|
|
|
|
# Optionally use requisite above if you do not want to prompt for the password
|
|
|
|
# on locked accounts.
|
2022-10-23 00:35:37 +02:00
|
|
|
-auth [success=2 default=ignore] pam_systemd_home.so
|
|
|
|
auth [success=1 default=bad] pam_unix.so try_first_pass nullok
|
2022-03-20 13:19:37 +01:00
|
|
|
auth [default=die] pam_faillock.so authfail
|
|
|
|
auth optional pam_permit.so
|
|
|
|
auth required pam_env.so
|
|
|
|
auth required pam_faillock.so authsucc
|
|
|
|
# If you drop the above call to pam_faillock.so the lock will be done also
|
|
|
|
# on non-consecutive authentication failures.
|
|
|
|
|
2022-10-23 00:35:37 +02:00
|
|
|
-account [success=1 default=ignore] pam_systemd_home.so
|
2022-03-20 13:19:37 +01:00
|
|
|
account required pam_unix.so
|
|
|
|
account optional pam_permit.so
|
|
|
|
account required pam_time.so
|
|
|
|
|
2022-10-23 00:35:37 +02:00
|
|
|
-password [success=1 default=ignore] pam_systemd_home.so
|
2022-03-20 13:19:37 +01:00
|
|
|
password required pam_unix.so try_first_pass nullok shadow sha512
|
|
|
|
password optional pam_permit.so
|
|
|
|
|
2022-10-23 00:35:37 +02:00
|
|
|
-session optional pam_systemd_home.so
|
2022-03-20 13:19:37 +01:00
|
|
|
session required pam_limits.so
|
|
|
|
session required pam_unix.so
|
|
|
|
session optional pam_permit.so
|