{"description": "The <tt>ypserv</tt> service, which allows the system to act as a client in\na NIS or NIS+ domain, should be disabled.\n\nThe <code>ypserv</code> service can be disabled with the following command:\n<pre>$ sudo systemctl mask --now ypserv.service</pre>", "rationale": "Disabling the <tt>ypserv</tt> service ensures the system is not acting\nas a client in a NIS or NIS+ domain. This service should be disabled\nunless in use.", "severity": "medium", "references": {"cis": ["2.1.10"]}, "control_references": {"cis": ["2.1.10"]}, "components": [], "identifiers": {}, "ocil_clause": "the \"ypserv\" is loaded and not masked", "ocil": "To check that the <code>ypserv</code> service is disabled in system boot configuration,\nrun the following command:\n<pre>$ sudo systemctl is-enabled <code>ypserv</code></pre>\nOutput should indicate the <code>ypserv</code> service has either not been installed,\nor has been disabled at all runlevels, as shown in the example below:\n<pre>$ sudo systemctl is-enabled <code>ypserv</code><br/> disabled</pre>\n\nRun the following command to verify <code>ypserv</code> is not active (i.e. not running) through current runtime configuration:\n<pre>$ sudo systemctl is-active ypserv</pre>\n\nIf the service is not running the command will return the following output:\n<pre>inactive</pre>\n\nThe service will also be masked, to check that the <code>ypserv</code> is masked, run the following command:\n<pre>$ sudo systemctl show <code>ypserv</code> | grep \"LoadState\\|UnitFileState\"</pre>\n\nIf the service is masked the command will return the following outputs:\n\n<pre>LoadState=masked</pre>\n\n<pre>UnitFileState=masked</pre>", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": "system_with_kernel", "platforms": ["system_with_kernel"], "sce_metadata": {"check-import": "stdout", "platform": ["multi_platform_all"], "environment": "any", "filename": "service_ypserv_disabled.sh", "relative_path": "ubuntu2204/checks/sce/service_ypserv_disabled.sh"}, "inherited_platforms": [], "cpe_platform_names": ["system_with_kernel"], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Disable ypserv Service", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/services/obsolete/nis/service_ypserv_disabled/rule.yml", "template": {"name": "service_disabled", "vars": {"servicename": "ypserv"}, "backends": {}}}