diff --git a/linux_os/guide/system/accounts/accounts-pam/set_password_hashing_algorithm/set_password_hashing_algorithm_systemauth/bash/shared.sh b/linux_os/guide/system/accounts/accounts-pam/set_password_hashing_algorithm/set_password_hashing_algorithm_systemauth/bash/shared.sh index 309e83c9383..4ae367b611c 100644 --- a/linux_os/guide/system/accounts/accounts-pam/set_password_hashing_algorithm/set_password_hashing_algorithm_systemauth/bash/shared.sh +++ b/linux_os/guide/system/accounts/accounts-pam/set_password_hashing_algorithm/set_password_hashing_algorithm_systemauth/bash/shared.sh @@ -2,15 +2,13 @@ {{{ bash_instantiate_variables("var_password_hashing_algorithm_pam") }}} -{{% if 'sle' in product or 'ubuntu' in product -%}} -PAM_FILE_PATH="/etc/pam.d/common-password" -{{%- else -%}} -PAM_FILE_PATH="/etc/pam.d/system-auth" -{{%- endif %}} - {{% if 'sle' in product -%}} +PAM_FILE_PATH="/etc/pam.d/common-password" CONTROL="required" +{{%- elif 'ubuntu' in product -%}} +PAM_FILE_PATH="/etc/pam.d/common-password" {{%- else -%}} +PAM_FILE_PATH="/etc/pam.d/system-auth" CONTROL="sufficient" {{%- endif %}}