#!/bin/bash
# platform = multi_platform_sle

cat >/etc/pam.d/common-account <<CAPTA
account	[success=1 new_authtok_reqd=done default=ignore]	pam_unix.so
account	requisite			pam_deny.so
account	required			pam_permit.so
CAPTA

cat >/etc/pam.d/login <<CAPTEDRC
auth required pam_tally2.so onerr=fail audit silent deny=3 even_deny_root unlock_time=900
auth	[success=1 default=ignore]	pam_unix.so nullok_secure
auth	requisite			pam_deny.so
auth	required			pam_permit.so
auth	optional			pam_cap.so
CAPTEDRC
