diff --git a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/authselect_modified_pam.fail.sh b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/authselect_modified_pam.fail.sh index 793a579b700..60ede2a2494 100644 --- a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/authselect_modified_pam.fail.sh +++ b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/authselect_modified_pam.fail.sh @@ -1,6 +1,6 @@ #!/bin/bash # packages = authselect -# platform = Oracle Linux 8,Oracle Linux 9,Red Hat Enterprise Linux 8,Red Hat Enterprise Linux 9,multi_platform_fedora +# platform = multi_platform_fedora,Oracle Linux 8,Oracle Linux 9,Red Hat Enterprise Linux 8,Red Hat Enterprise Linux 9 # remediation = none authselect create-profile hardening -b sssd diff --git a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/commented_line.fail.sh b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/commented_line.fail.sh index 34597285866..d652af8c0bb 100644 --- a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/commented_line.fail.sh +++ b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/commented_line.fail.sh @@ -1,7 +1,7 @@ #!/bin/bash -# platform = multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7 +# platform = multi_platform_sle,multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7 -{{% if product in ["sle12", "sle15"] or 'ubuntu' in product %}} +{{%- if "sle" in product or "ubuntu" in product %}} {{% set pam_lastlog_path = "/etc/pam.d/login" %}} {{% else %}} {{% set pam_lastlog_path = "/etc/pam.d/postlogin" %}} diff --git a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/correct_value.pass.sh b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/correct_value.pass.sh index 0af56ef14b0..ba7eebaa909 100644 --- a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/correct_value.pass.sh +++ b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/correct_value.pass.sh @@ -1,7 +1,7 @@ #!/bin/bash # platform = multi_platform_all -{{% if product in ["sle12", "sle15"] or 'ubuntu' in product %}} +{{%- if "sle" in product or "ubuntu" in product %}} {{% set pam_lastlog_path = "/etc/pam.d/login" %}} {{% else %}} {{% set pam_lastlog_path = "/etc/pam.d/postlogin" %}} diff --git a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/no_silent_all.pass.sh b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/no_silent_all.pass.sh index 4b7379b55a8..92492a86b7b 100644 --- a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/no_silent_all.pass.sh +++ b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/no_silent_all.pass.sh @@ -1,7 +1,7 @@ #!/bin/bash # platform = multi_platform_all -{{% if product in ["sle12", "sle15"] or 'ubuntu' in product %}} +{{%- if "sle" in product or "ubuntu" in product %}} {{% set pam_lastlog_path = "/etc/pam.d/login" %}} {{% else %}} {{% set pam_lastlog_path = "/etc/pam.d/postlogin" %}} @@ -12,6 +12,6 @@ rm -f {{{ pam_lastlog_path }}} cat < {{{ pam_lastlog_path }}} session optional pam_umask.so silent session [success=1 default=ignore] pam_succeed_if.so service !~ gdm* service !~ su* quiet -session [default=1] pam_lastlog.so nowtmp showfailed +session required pam_lastlog.so nowtmp showfailed session optional pam_lastlog.so noupdate showfailed EOF diff --git a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/no_space_before_showfailed.fail.sh b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/no_space_before_showfailed.fail.sh index 43dc1d446e7..e2147164338 100644 --- a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/no_space_before_showfailed.fail.sh +++ b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/no_space_before_showfailed.fail.sh @@ -1,7 +1,7 @@ #!/bin/bash -# platform = multi_platform_fedora,multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7 +# platform = multi_platform_sle,multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7 -{{% if product in ["sle12", "sle15"] or 'ubuntu' in product %}} +{{%- if "sle" in product or "ubuntu" in product %}} {{% set pam_lastlog_path = "/etc/pam.d/login" %}} {{% else %}} {{% set pam_lastlog_path = "/etc/pam.d/postlogin" %}} diff --git a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/no_space_before_silent.pass.sh b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/no_space_before_silent.pass.sh index dca675618db..41e256313dd 100644 --- a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/no_space_before_silent.pass.sh +++ b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/no_space_before_silent.pass.sh @@ -1,7 +1,7 @@ #!/bin/bash # platform = multi_platform_all -{{% if product in ["sle12", "sle15"] or 'ubuntu' in product %}} +{{%- if "sle" in product or "ubuntu" in product %}} {{% set pam_lastlog_path = "/etc/pam.d/login" %}} {{% else %}} {{% set pam_lastlog_path = "/etc/pam.d/postlogin" %}} diff --git a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/silent_present.fail.sh b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/silent_present.fail.sh index 9fd206052cd..9609f879164 100644 --- a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/silent_present.fail.sh +++ b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/silent_present.fail.sh @@ -1,7 +1,7 @@ #!/bin/bash -# platform = multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7 +# platform = multi_platform_sle,multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7 -{{% if product in ["sle12", "sle15"] or 'ubuntu' in product %}} +{{%- if "sle" in product or "ubuntu" in product %}} {{% set pam_lastlog_path = "/etc/pam.d/login" %}} {{% else %}} {{% set pam_lastlog_path = "/etc/pam.d/postlogin" %}} diff --git a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/wrong_value.fail.sh b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/wrong_value.fail.sh index e5806bb4be8..34e1045a90e 100644 --- a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/wrong_value.fail.sh +++ b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/tests/wrong_value.fail.sh @@ -1,7 +1,7 @@ #!/bin/bash -# platform = multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7 +# platform = multi_platform_sle,multi_platform_ubuntu,Oracle Linux 7,Red Hat Enterprise Linux 7 -{{% if product in ["sle12", "sle15"] or 'ubuntu' in product %}} +{{%- if "sle" in product or "ubuntu" in product %}} {{% set pam_lastlog_path = "/etc/pam.d/login" %}} {{% else %}} {{% set pam_lastlog_path = "/etc/pam.d/postlogin" %}}