diff --git a/linux_os/guide/system/accounts/accounts-physical/require_emergency_target_auth/tests/correct_value_dropin.pass.sh b/linux_os/guide/system/accounts/accounts-physical/require_emergency_target_auth/tests/correct_value_dropin.pass.sh new file mode 100644 index 00000000000..73d2f3ad045 --- /dev/null +++ b/linux_os/guide/system/accounts/accounts-physical/require_emergency_target_auth/tests/correct_value_dropin.pass.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# platform = multi_platform_fedora,multi_platform_rhel,multi_platform_sle +rm -f /etc/systemd/system/emergency.service +mkdir -p /etc/systemd/system/emergency.service.d/ +cat << EOF > /etc/systemd/system/emergency.service.d/10-automatus.conf +[Service] +ExecStart=-/usr/lib/systemd/systemd-sulogin-shell emergency +EOF diff --git a/linux_os/guide/system/accounts/accounts-physical/require_emergency_target_auth/tests/wrong_value_dropin.fail.sh b/linux_os/guide/system/accounts/accounts-physical/require_emergency_target_auth/tests/wrong_value_dropin.fail.sh new file mode 100644 index 00000000000..73d2f3ad045 --- /dev/null +++ b/linux_os/guide/system/accounts/accounts-physical/require_emergency_target_auth/tests/wrong_value_dropin.fail.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# platform = multi_platform_fedora,multi_platform_rhel,multi_platform_sle +rm -f /etc/systemd/system/emergency.service +mkdir -p /etc/systemd/system/emergency.service.d/ +cat << EOF > /etc/systemd/system/emergency.service.d/10-automatus.conf +[Service] +ExecStart=-/usr/lib/systemd/systemd-sulogin-shell emergency +EOF diff --git a/linux_os/guide/system/accounts/accounts-physical/require_singleuser_auth/tests/correct_dropin.pass.sh b/linux_os/guide/system/accounts/accounts-physical/require_singleuser_auth/tests/correct_dropin.pass.sh new file mode 100644 index 00000000000..8d4fa5dc408 --- /dev/null +++ b/linux_os/guide/system/accounts/accounts-physical/require_singleuser_auth/tests/correct_dropin.pass.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# platform = multi_platform_fedora,multi_platform_rhel + +mkdir -p /etc/systemd/system/rescue.service.d +cat << EOF > /etc/systemd/system/rescue.service.d/10-automatus.conf +[Service] +ExecStart=-/usr/lib/systemd/systemd-sulogin-shell rescue +EOF diff --git a/linux_os/guide/system/accounts/accounts-physical/require_singleuser_auth/tests/wrong_dropin.fail.sh b/linux_os/guide/system/accounts/accounts-physical/require_singleuser_auth/tests/wrong_dropin.fail.sh new file mode 100644 index 00000000000..8d4fa5dc408 --- /dev/null +++ b/linux_os/guide/system/accounts/accounts-physical/require_singleuser_auth/tests/wrong_dropin.fail.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# platform = multi_platform_fedora,multi_platform_rhel + +mkdir -p /etc/systemd/system/rescue.service.d +cat << EOF > /etc/systemd/system/rescue.service.d/10-automatus.conf +[Service] +ExecStart=-/usr/lib/systemd/systemd-sulogin-shell rescue +EOF