diff --git a/linux_os/guide/services/snmp/snmp_configure_server/snmpd_no_rwusers/rule.yml b/linux_os/guide/services/snmp/snmp_configure_server/snmpd_no_rwusers/rule.yml index a7b8a41fa81..ab487ee5c83 100644 --- a/linux_os/guide/services/snmp/snmp_configure_server/snmpd_no_rwusers/rule.yml +++ b/linux_os/guide/services/snmp/snmp_configure_server/snmpd_no_rwusers/rule.yml @@ -6,7 +6,7 @@ title: 'Ensure SNMP Read Write is disabled' description: |- Edit /etc/snmp/snmpd.conf, remove any rwuser entries. Once the read write users have been removed, restart the SNMP service: -
$ sudo service snmpd restart
+
$ sudo systemctl restart snmpd
rationale: |- Certain SNMP settings can permit users to execute system behaviors from user diff --git a/linux_os/guide/services/snmp/snmp_configure_server/snmpd_not_default_password/rule.yml b/linux_os/guide/services/snmp/snmp_configure_server/snmpd_not_default_password/rule.yml index a2efa305c3c..493e71de149 100644 --- a/linux_os/guide/services/snmp/snmp_configure_server/snmpd_not_default_password/rule.yml +++ b/linux_os/guide/services/snmp/snmp_configure_server/snmpd_not_default_password/rule.yml @@ -8,7 +8,7 @@ description: |- public and private. This profile configures new read-only community string to {{{ xccdf_value("var_snmpd_ro_string") }}} and read-write community string to {{{ sub_var_value("var_snmpd_rw_string") }}}. Once the default community strings have been changed, restart the SNMP service: -
$ sudo service snmpd restart
+
$ sudo systemctl restart snmpd
rationale: |- Whether active or not, default simple network management protocol (SNMP) community diff --git a/linux_os/guide/services/snmp/snmp_configure_server/snmpd_use_newer_protocol/rule.yml b/linux_os/guide/services/snmp/snmp_configure_server/snmpd_use_newer_protocol/rule.yml index d1dda8a28a4..77beca76366 100644 --- a/linux_os/guide/services/snmp/snmp_configure_server/snmpd_use_newer_protocol/rule.yml +++ b/linux_os/guide/services/snmp/snmp_configure_server/snmpd_use_newer_protocol/rule.yml @@ -6,7 +6,7 @@ title: 'Configure SNMP Service to Use Only SNMPv3 or Newer' description: |- Edit /etc/snmp/snmpd.conf, removing any references to rocommunity, rwcommunity, or com2sec. Upon doing that, restart the SNMP service: -
$ sudo service snmpd restart
+
$ sudo systemctl restart snmpd
rationale: |- Earlier versions of SNMP are considered insecure, as they potentially allow diff --git a/shared/macros/01-general.jinja b/shared/macros/01-general.jinja index 634474ce795..4089d4d8707 100644 --- a/shared/macros/01-general.jinja +++ b/shared/macros/01-general.jinja @@ -660,14 +660,14 @@ JINJA MACRO ERROR - Unknown init system '{{{ init_system }}}'. Example output:: - $ sudo dnf erase remove package + $ sudo dnf remove package :param package: Package to remove :type package: str #}} {{%- macro dnf_package_remove(package) %}} - $ sudo dnf erase {{{ package }}} + $ sudo dnf remove {{{ package }}} {{%- endmacro %}}