diff --git a/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/correct.pass.sh b/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/correct.pass.sh index 487197852c37..f29e08eb61f9 100644 --- a/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/correct.pass.sh +++ b/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/correct.pass.sh @@ -1,6 +1,6 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 echo "restrict -4 default kod nomodify notrap nopeer noquery" > /etc/ntp.conf echo "restrict -6 default kod nomodify notrap nopeer noquery" >> /etc/ntp.conf diff --git a/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/file_empty.fail.sh b/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/file_empty.fail.sh index b6c69fb35dd4..2c7542186696 100644 --- a/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/file_empty.fail.sh +++ b/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/file_empty.fail.sh @@ -1,5 +1,5 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 echo "" > /etc/ntp.conf diff --git a/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/file_missing.fail.sh b/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/file_missing.fail.sh index 342e163742ba..13035021479f 100644 --- a/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/file_missing.fail.sh +++ b/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/file_missing.fail.sh @@ -1,5 +1,5 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 rm -f /etc/ntp.conf diff --git a/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/more_restrictions.pass.sh b/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/more_restrictions.pass.sh index e2dcacffc2a2..1d5016501f09 100644 --- a/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/more_restrictions.pass.sh +++ b/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/more_restrictions.pass.sh @@ -1,6 +1,6 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 echo "restrict -4 default kod nomodify notrap nopeer noquery" > /etc/ntp.conf echo "restrict -6 default kod nomodify notrap nopeer noquery" >> /etc/ntp.conf diff --git a/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/restriction_missing.fail.sh b/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/restriction_missing.fail.sh index b71e573d62e3..1729cd56f6a0 100644 --- a/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/restriction_missing.fail.sh +++ b/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/restriction_missing.fail.sh @@ -1,5 +1,5 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 echo "restrict -4 default kod nomodify notrap nopeer noquery" > /etc/ntp.conf diff --git a/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/restriction_not_complete.fail.sh b/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/restriction_not_complete.fail.sh index 7833806918d9..38ea6d9a61c6 100644 --- a/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/restriction_not_complete.fail.sh +++ b/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/restriction_not_complete.fail.sh @@ -1,6 +1,6 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 echo "restrict -4 default kod nomodify notrap nopeer noquery" > /etc/ntp.conf # this one is not complete diff --git a/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/restrictions_different_order.pass.sh b/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/restrictions_different_order.pass.sh index fc8ec4def29b..847b9a3f871b 100644 --- a/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/restrictions_different_order.pass.sh +++ b/linux_os/guide/services/ntp/ntpd_configure_restrictions/tests/restrictions_different_order.pass.sh @@ -1,6 +1,6 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 echo "restrict -4 default kod nomodify notrap nopeer noquery" > /etc/ntp.conf # last two are swapped diff --git a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/correct_both.pass.sh b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/correct_both.pass.sh index 8c3fa84e90c7..c0a6be00b2a8 100644 --- a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/correct_both.pass.sh +++ b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/correct_both.pass.sh @@ -1,6 +1,6 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 echo 'OPTIONS="-u ntp:ntp"' > /etc/sysconfig/ntpd echo 'ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS' > /usr/lib/systemd/system/ntpd.service diff --git a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/correct_etc_sysconfig_ntpd.pass.sh b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/correct_etc_sysconfig_ntpd.pass.sh index a90a2bc4397e..86bbf2616e6d 100644 --- a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/correct_etc_sysconfig_ntpd.pass.sh +++ b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/correct_etc_sysconfig_ntpd.pass.sh @@ -1,6 +1,6 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 echo 'OPTIONS="-u ntp:ntp"' > /etc/sysconfig/ntpd rm -f /usr/lib/systemd/system/ntpd.service diff --git a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/correct_systemd.pass.sh b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/correct_systemd.pass.sh index d93b85fdd6a4..e9de3f97622c 100644 --- a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/correct_systemd.pass.sh +++ b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/correct_systemd.pass.sh @@ -1,6 +1,6 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 echo 'ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS' > /usr/lib/systemd/system/ntpd.service rm -f /etc/sysconfig/ntpd diff --git a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/empty_both.fail.sh b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/empty_both.fail.sh index ff554e6373bd..829325ad282a 100644 --- a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/empty_both.fail.sh +++ b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/empty_both.fail.sh @@ -1,6 +1,6 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 echo "" > /etc/sysconfig/ntpd echo "" > /usr/lib/systemd/system/ntpd.service diff --git a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/empty_etc_sysconfig_ntpd.fail.sh b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/empty_etc_sysconfig_ntpd.fail.sh index f23037a0c39a..c274c85e88cb 100644 --- a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/empty_etc_sysconfig_ntpd.fail.sh +++ b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/empty_etc_sysconfig_ntpd.fail.sh @@ -1,6 +1,6 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 echo "" > /etc/sysconfig/ntpd rm -f /usr/lib/systemd/system/ntpd.service diff --git a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/empty_systemd.fail.sh b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/empty_systemd.fail.sh index eb7f4bc6a7ab..8c9be79391ec 100644 --- a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/empty_systemd.fail.sh +++ b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/empty_systemd.fail.sh @@ -1,6 +1,6 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 echo "" > /usr/lib/systemd/system/ntpd.service rm -f /etc/sysconfig/ntpd diff --git a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/files_missing.fail.sh b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/files_missing.fail.sh index d89aef629179..aaa90d04471e 100644 --- a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/files_missing.fail.sh +++ b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/files_missing.fail.sh @@ -1,6 +1,6 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 rm -f /etc/sysconfig/ntpd rm -f /usr/lib/systemd/system/ntpd.service diff --git a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/sysconfig_empty_options.fail.sh b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/sysconfig_empty_options.fail.sh index ea976530abaf..503388f38d6e 100644 --- a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/sysconfig_empty_options.fail.sh +++ b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/sysconfig_empty_options.fail.sh @@ -1,6 +1,6 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 echo 'OPTIONS=""' > /etc/sysconfig/ntpd rm -f /usr/lib/systemd/system/ntpd.service diff --git a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/wrong_line_etc_sysconfig_ntpd.fail.sh b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/wrong_line_etc_sysconfig_ntpd.fail.sh index 508128defeba..c2a2dbba0096 100644 --- a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/wrong_line_etc_sysconfig_ntpd.fail.sh +++ b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/wrong_line_etc_sysconfig_ntpd.fail.sh @@ -1,6 +1,6 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 echo 'OPTIONS="-u root:root"' > /etc/sysconfig/ntpd rm -f /usr/lib/systemd/system/ntpd.service diff --git a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/wrong_line_systemd.fail.sh b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/wrong_line_systemd.fail.sh index db9616784c97..f38f97554e44 100644 --- a/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/wrong_line_systemd.fail.sh +++ b/linux_os/guide/services/ntp/ntpd_run_as_ntp_user/tests/wrong_line_systemd.fail.sh @@ -1,6 +1,6 @@ #!/bin/bash # packages = ntp - +# platform = Oracle Linux 7,Red Hat Enterprise Linux 7 echo 'ExecStart=/usr/sbin/ntpd -u root:root $OPTIONS' > /usr/lib/systemd/system/ntpd.service rm -f /etc/sysconfig/ntpd